1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:27:45 +00:00

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
parent 3f2b70382e
commit 18d489faec

View file

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