mirror of
https://github.com/RGBCube/serenity
synced 2025-06-22 21:42:06 +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();
|
begin_token();
|
||||||
while (peek() && !(peek() == ']' || peek() == '\n'))
|
while (peek() && !(peek() == ']' || peek() == '\n'))
|
||||||
consume();
|
consume();
|
||||||
commit_token(IniToken::Type::section);
|
commit_token(IniToken::Type::Section);
|
||||||
|
|
||||||
// ] Token
|
// ] Token
|
||||||
if (peek() && peek() == ']') {
|
if (peek() && peek() == ']') {
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace GUI {
|
||||||
__TOKEN(Unknown) \
|
__TOKEN(Unknown) \
|
||||||
__TOKEN(Comment) \
|
__TOKEN(Comment) \
|
||||||
__TOKEN(Whitespace) \
|
__TOKEN(Whitespace) \
|
||||||
__TOKEN(section) \
|
__TOKEN(Section) \
|
||||||
__TOKEN(LeftBracket) \
|
__TOKEN(LeftBracket) \
|
||||||
__TOKEN(RightBracket) \
|
__TOKEN(RightBracket) \
|
||||||
__TOKEN(Name) \
|
__TOKEN(Name) \
|
||||||
|
|
|
@ -15,7 +15,7 @@ static Syntax::TextStyle style_for_token_type(const Gfx::Palette& palette, IniTo
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case IniToken::Type::LeftBracket:
|
case IniToken::Type::LeftBracket:
|
||||||
case IniToken::Type::RightBracket:
|
case IniToken::Type::RightBracket:
|
||||||
case IniToken::Type::section:
|
case IniToken::Type::Section:
|
||||||
return { palette.syntax_keyword(), true };
|
return { palette.syntax_keyword(), true };
|
||||||
case IniToken::Type::Name:
|
case IniToken::Type::Name:
|
||||||
return { palette.syntax_identifier() };
|
return { palette.syntax_identifier() };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue