Skip to content

Commit 4a0954f

Browse files
feat(lexer): add is_special_ident utility function
1 parent b19735b commit 4a0954f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wheel_lexer/include/wheel_lexer/utils.hxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ WHEEL_LEXER_NAMESPACE
5353
return is_ident_start(character) || is_digit(character);
5454
}
5555

56+
WHEEL_COMPTIME_NODISCARD_INLINE bool is_special_ident(char character) noexcept {
57+
return character == 'r';
58+
}
59+
5660
WHEEL_COMPTIME_NODISCARD_INLINE bool starts_with(String str, StrView prefix) noexcept {
5761
return str.size() >= prefix.size() &&
5862
std::equal(prefix.begin(), prefix.end(), str.begin());

0 commit comments

Comments
 (0)