1
Fork 0
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:
AnotherTest 2020-04-05 16:50:49 +04:30 committed by Andreas Kling
parent cdb627a516
commit 7b54274ac5

View file

@ -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;
}