fix ISLE,Pos'col, looks like a bug to me. (#6041)

* fix col

* fix test failure
This commit is contained in:
yuyang
2023-03-18 06:23:01 +08:00
committed by GitHub
parent 78dbe93f21
commit 02089b9b3c
2 changed files with 3 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ impl<'a> Lexer<'a> {
file: self.pos.file,
offset: self.pos.offset - self.file_starts[self.pos.file],
line: self.pos.line,
col: self.pos.file,
col: self.pos.col,
}
}

View File

@@ -2479,7 +2479,7 @@ mod test {
file: 0,
offset: 19,
line: 2,
col: 0,
col: 18,
},
),
Type::Enum {
@@ -2520,7 +2520,7 @@ mod test {
file: 0,
offset: 58,
line: 3,
col: 0,
col: 18,
},
},
];