1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +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;
}
// ;Comment
if (ch == ';') {
// ;Comment or #Comment
if (ch == ';' || ch == '#') {
begin_token();
while (peek() && peek() != '\n')
consume();