Normalize passes keep spans and clean warnings

This commit is contained in:
nyash-codex
2025-11-24 15:02:51 +09:00
parent 466e636af6
commit da1a5558e5
40 changed files with 547 additions and 362 deletions

View File

@ -101,14 +101,12 @@ fn print_source_snippet(filename: &str, src: &str, line: usize, col: Option<usiz
if line <= lines.len() {
let text = lines[line - 1];
let mut underline = String::new();
let mut idx = 0usize;
for (i, ch) in text.chars().enumerate() {
if i + 1 >= col {
break;
}
// Preserve tabs visually; spaces elsewhere
underline.push(if ch == '\t' { '\t' } else { ' ' });
idx = i;
}
let pad = " "; // align under " LNNNNN |"
eprintln!(" {}{}^", pad, underline);

View File

@ -178,6 +178,7 @@ impl<'a> PreludeManagerBox<'a> {
});
current_line += main_lines;
}
let _ = current_line;
if trace {
crate::runner::trace::log(format!(

View File

@ -999,6 +999,7 @@ pub fn merge_prelude_text(
});
current_line += main_lines;
}
let _ = current_line;
if trace {
crate::runner::trace::log(format!(