mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
LibJS: Report the start position of a token as its line column
This commit is contained in:
parent
cdb627a516
commit
7b54274ac5
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ Token Lexer::next()
|
|||
m_source.substring_view(trivia_start - 1, value_start - trivia_start),
|
||||
m_source.substring_view(value_start - 1, m_position - value_start),
|
||||
m_line_number,
|
||||
m_line_column);
|
||||
m_line_column - m_position + value_start);
|
||||
|
||||
return m_current_token;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue