mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Fix parsing @_foo
This commit is contained in:
@@ -1280,7 +1280,7 @@ static bool lexer_scan_token_inner(Lexer *lexer)
|
||||
case '\n':
|
||||
return scan_doc_line(lexer);
|
||||
case '@':
|
||||
if (char_is_letter(peek(lexer)))
|
||||
if (char_is_letter_(peek(lexer)))
|
||||
{
|
||||
return scan_ident(lexer, TOKEN_AT_IDENT, TOKEN_AT_CONST_IDENT, TOKEN_AT_TYPE_IDENT, '@');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user