mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
Notes:
sideshowbarker
2024-07-17 21:57:40 +09:00
Author: https://github.com/sppmacd
Commit: 18d489faec
Pull-request: https://github.com/SerenityOS/serenity/pull/11502
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue