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:
parent
3f2b70382e
commit
18d489faec
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue