Skip to content

Commit

Permalink
Merge pull request #27636 from eltociear/patch-1
Browse files Browse the repository at this point in the history
Update mod.rs
  • Loading branch information
d0cd authored Mar 13, 2024
2 parents 9ed70d9 + 1084909 commit a26bad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/parser/src/tokenizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a26bad9

Please sign in to comment.