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
commit 7b54274ac5
Notes: sideshowbarker 2024-07-19 07:53:05 +09:00

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