1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 07:18:13 +00:00

LibGUI: Use consistent naming scheme in INILexer

This commit is contained in:
Maciej 2021-12-30 13:43:45 +01:00 committed by Andreas Kling
parent 18d489faec
commit 1f7e363b74
3 changed files with 3 additions and 3 deletions

View file

@ -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() == ']') {

View file

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

View file

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