Skip to content

Commit 089a534

Browse files
committed
Correctly cpp2::-prefix ulonglong, _schar, and _uchar
Closes #866
1 parent c603477 commit 089a534

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source/lex.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,9 @@ auto lex_line(
10161016
auto peek_is_cpp2_fundamental_type_keyword = [&]
10171017
{
10181018
static const auto keys = std::vector<std::string_view>{
1019-
"i8", "i16", "i32", "i64", "longdouble", "longlong", "u8", "u16", "u32", "u64", "ulong", "ulonglong", "ushort"
1019+
"i8", "i16", "i32", "i64", "longdouble", "longlong",
1020+
"u8", "u16", "u32", "u64", "ulonglong", "ulong", "ushort",
1021+
"_schar", "_uchar"
10201022
};
10211023

10221024
return do_is_keyword(keys);
@@ -1025,7 +1027,10 @@ auto lex_line(
10251027
auto peek_is_cpp1_multi_token_fundamental_keyword = [&]
10261028
{
10271029
static const auto multi_keys = std::vector<std::string_view>{
1028-
"char16_t", "char32_t", "char8_t", "char", "double", "float", "int", "long", "short", "signed", "unsigned"
1030+
"char16_t", "char32_t", "char8_t", "char",
1031+
"double", "float",
1032+
"int", "long", "short",
1033+
"signed", "unsigned"
10291034
};
10301035
return do_is_keyword(multi_keys);
10311036
};

0 commit comments

Comments
 (0)