diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-25 21:58:40 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-25 21:58:40 +0200 |
commit | 5e5a7fbd40892fc776f2bc1d85d2320713c5f0f5 (patch) | |
tree | 271fb82a1f783c4fdc81a185aff1e9d9e2f104a4 /DevTools/HackStudio/CppLexer.h | |
parent | 6afe27b914508838bc3a50c5bd6479cea00fcaa5 (diff) | |
download | serenity-5e5a7fbd40892fc776f2bc1d85d2320713c5f0f5.zip |
HackStudio: Teach the C++ lexer about most C++ keywords
Also fix broken "/* */" comment handling.
Diffstat (limited to 'DevTools/HackStudio/CppLexer.h')
-rw-r--r-- | DevTools/HackStudio/CppLexer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DevTools/HackStudio/CppLexer.h b/DevTools/HackStudio/CppLexer.h index 50328be690..71bb05100d 100644 --- a/DevTools/HackStudio/CppLexer.h +++ b/DevTools/HackStudio/CppLexer.h @@ -4,7 +4,7 @@ #include <AK/Vector.h> #define FOR_EACH_TOKEN_TYPE \ - __TOKEN(Invalid) \ + __TOKEN(Unknown) \ __TOKEN(Whitespace) \ __TOKEN(PreprocessorStatement) \ __TOKEN(LeftParen) \ @@ -47,7 +47,7 @@ struct CppToken { ASSERT_NOT_REACHED(); } - Type m_type { Type::Invalid }; + Type m_type { Type::Unknown }; CppPosition m_start; CppPosition m_end; }; |