offset column numbers

This commit is contained in:
Evan Almloff committed 2022-06-15 13:36:18 -05:00
1 parent df4ea20bb8
commit d9ee305575
1 file changed
+2 -2
+2 -2
View File
@@ -30,10 +30,10 @@ impl ParseError {
location.line += syn_call_site.line as u32;
if syn_call_site.line == 0 {
location.column += syn_call_site.column as u32;
}
else{
} else {
location.column = syn_call_site.column as u32;
}
location.column += 1;
ParseError { message, location }
}
}