Selaa lähdekoodia

LibGUI: Handle '#' comments in INILexer

They are supported by LibCore's ConfigFile but were not higlighted.
Maciej 3 vuotta sitten
vanhempi
commit
18d489faec
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Userland/Libraries/LibGUI/INILexer.cpp

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

@@ -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();