1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

LibGUI: Fix off-by-one error in Lexer tokens

This changes the INI and GML lexers to conform to the now-fixed
rendering of syntax highlighting spans in GUI::TextEditor.

The other user of GMLToken::m_end, GMLAutocompleteProvider, has been
modified to take into account that end position columns have been
incremented by one.
This commit is contained in:
Max Wipfli 2021-06-04 00:05:33 +02:00 committed by Ali Mohammad Pur
parent e7b5dbe1ac
commit cb5a50d3f7
5 changed files with 6 additions and 10 deletions

View file

@ -62,7 +62,6 @@ private:
StringView m_input;
size_t m_index { 0 };
IniPosition m_previous_position { 0, 0 };
IniPosition m_position { 0, 0 };
};