Allow multiple consecutive string literals

This commit is contained in:
Josh Holtrop 2018-05-12 10:52:44 -04:00
parent 2c33cccaf7
commit c5c0bddc33

View File

@ -128,10 +128,15 @@ constant
primary_expression
: IDENTIFIER
| constant
| STRING_LITERAL
| string_literals
| LPAREN expression RPAREN
;
string_literals
: STRING_LITERAL
| string_literals STRING_LITERAL
;
postfix_expression
: primary_expression
| postfix_expression LBRACKET expression RBRACKET