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:
parent
6afe27b914
commit
5e5a7fbd40
2 changed files with 95 additions and 8 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue