1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 01:08:11 +00:00

HackStudio: Teach the C++ lexer about most C++ keywords

Also fix broken "/* */" comment handling.
This commit is contained in:
Andreas Kling 2019-10-25 21:58:40 +02:00
parent 6afe27b914
commit 5e5a7fbd40
2 changed files with 95 additions and 8 deletions

View file

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