From 18d489faec6ded58a9d50c530774cf97d8cd38ae Mon Sep 17 00:00:00 2001 From: Maciej Date: Thu, 30 Dec 2021 13:41:34 +0100 Subject: [PATCH] LibGUI: Handle '#' comments in INILexer They are supported by LibCore's ConfigFile but were not higlighted. --- Userland/Libraries/LibGUI/INILexer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibGUI/INILexer.cpp b/Userland/Libraries/LibGUI/INILexer.cpp index fd5ee1fd1f..333570ce68 100644 --- a/Userland/Libraries/LibGUI/INILexer.cpp +++ b/Userland/Libraries/LibGUI/INILexer.cpp @@ -75,8 +75,8 @@ Vector IniLexer::lex() continue; } - // ;Comment - if (ch == ';') { + // ;Comment or #Comment + if (ch == ';' || ch == '#') { begin_token(); while (peek() && peek() != '\n') consume();