Browse Source

LibGUI: Use consistent naming scheme in INILexer

Maciej 3 years ago
parent
commit
1f7e363b74

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

@@ -95,7 +95,7 @@ Vector<IniToken> IniLexer::lex()
             begin_token();
             while (peek() && !(peek() == ']' || peek() == '\n'))
                 consume();
-            commit_token(IniToken::Type::section);
+            commit_token(IniToken::Type::Section);
 
             // ] Token
             if (peek() && peek() == ']') {

+ 1 - 1
Userland/Libraries/LibGUI/INILexer.h

@@ -14,7 +14,7 @@ namespace GUI {
     __TOKEN(Unknown)        \
     __TOKEN(Comment)        \
     __TOKEN(Whitespace)     \
-    __TOKEN(section)        \
+    __TOKEN(Section)        \
     __TOKEN(LeftBracket)    \
     __TOKEN(RightBracket)   \
     __TOKEN(Name)           \

+ 1 - 1
Userland/Libraries/LibGUI/INISyntaxHighlighter.cpp

@@ -15,7 +15,7 @@ static Syntax::TextStyle style_for_token_type(const Gfx::Palette& palette, IniTo
     switch (type) {
     case IniToken::Type::LeftBracket:
     case IniToken::Type::RightBracket:
-    case IniToken::Type::section:
+    case IniToken::Type::Section:
         return { palette.syntax_keyword(), true };
     case IniToken::Type::Name:
         return { palette.syntax_identifier() };