Allow multiple consecutive string literals

This commit is contained in:
josh committed 2018-05-12 10:52:44 -04:00
1 parent 2c33cccaf7
commit c5c0bddc33
1 file changed
+6 -1
+6 -1
View File
@@ -128,10 +128,15 @@ constant
primary_expression primary_expression
: IDENTIFIER : IDENTIFIER
| constant | constant
| STRING_LITERAL | string_literals
| LPAREN expression RPAREN | LPAREN expression RPAREN
; ;
string_literals
: STRING_LITERAL
| string_literals STRING_LITERAL
;
postfix_expression postfix_expression
: primary_expression : primary_expression
| postfix_expression LBRACKET expression RBRACKET | postfix_expression LBRACKET expression RBRACKET