mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
fix tab position
This commit is contained in:
parent
256e7adaff
commit
c6abb0e129
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ fn fast_eat_spaces(state: &State) -> FastSpaceState {
|
||||||
line_start = base_offset + index;
|
line_start = base_offset + index;
|
||||||
}
|
}
|
||||||
b'\t' => {
|
b'\t' => {
|
||||||
return HasTab(Position::new(index as u32));
|
return HasTab(Position::new((base_offset + index) as u32));
|
||||||
}
|
}
|
||||||
b'#' => {
|
b'#' => {
|
||||||
index += 1;
|
index += 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue