瀏覽代碼

LibGUI: Handle '#' comments in INILexer

They are supported by LibCore's ConfigFile but were not higlighted.
Maciej 3 年之前
父節點
當前提交
18d489faec
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Userland/Libraries/LibGUI/INILexer.cpp

+ 2 - 2
Userland/Libraries/LibGUI/INILexer.cpp

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