Skip to content

Commit e890c18

Browse files
committed
Change Statement List identifier token
Underscores are allowed inside of identifiers without quotes as long as they're not the first symbol.
1 parent cbef420 commit e890c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/statement-list/scanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void statement_list_scanner_init()
259259
return TOK_REAL_LITERAL;
260260
}
261261

262-
(\"[^\"\r\t\n]+\")|([a-zA-Z][a-zA-Z0-9]*) {
262+
(\"[^\"\r\t\n]+\")|([a-zA-Z][a-zA-Z0-9_]*) {
263263
newstack(yystatement_listlval);
264264
parser_stack(yystatement_listlval) =
265265
convert_identifier(yytext);

0 commit comments

Comments
 (0)