mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
offset column numbers
This commit is contained in:
parent
df4ea20bb8
commit
d9ee305575
1 changed files with 3 additions and 3 deletions
|
@ -28,12 +28,12 @@ impl ParseError {
|
|||
let message = error.to_string();
|
||||
let syn_call_site = error.span().start();
|
||||
location.line += syn_call_site.line as u32;
|
||||
if syn_call_site.line == 0{
|
||||
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 }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue