Update mod.rs

line_indicies -> line_indices

Signed-off-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
This commit is contained in:
Ikko Eltociear Ashimine 2024-02-11 13:34:06 +09:00 committed by GitHub
parent a0cbb5490f
commit 1084909db1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -193,10 +193,10 @@ ppp test
let sm = &s.source_map;
let sf = sm.new_source(raw, FileName::Custom("test".into()));
let tokens = tokenize(&sf.src, sf.start_pos).unwrap();
let mut line_indicies = vec![0];
let mut line_indices = vec![0];
for (i, c) in raw.chars().enumerate() {
if c == '\n' {
line_indicies.push(i + 1);
line_indices.push(i + 1);
}
}
for token in tokens.iter() {