LibGUI: Handle '#' comments in INILexer

They are supported by LibCore's ConfigFile but were not higlighted.
This commit is contained in:
Maciej 2021-12-30 13:41:34 +01:00 committed by Andreas Kling
commit 18d489faec
Notes: sideshowbarker 2024-07-17 21:57:40 +09:00

View file

@ -75,8 +75,8 @@ Vector<IniToken> IniLexer::lex()
continue;
}
// ;Comment
if (ch == ';') {
// ;Comment or #Comment
if (ch == ';' || ch == '#') {
begin_token();
while (peek() && peek() != '\n')
consume();