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:
parent
18d489faec
commit
1f7e363b74
3 changed files with 3 additions and 3 deletions
|
@ -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() == ']') {
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace GUI {
|
|||
__TOKEN(Unknown) \
|
||||
__TOKEN(Comment) \
|
||||
__TOKEN(Whitespace) \
|
||||
__TOKEN(section) \
|
||||
__TOKEN(Section) \
|
||||
__TOKEN(LeftBracket) \
|
||||
__TOKEN(RightBracket) \
|
||||
__TOKEN(Name) \
|
||||
|
|
|
@ -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() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue