Allow multiple consecutive string literals
This commit is contained in:
1 parent
2c33cccaf7
commit
c5c0bddc33
1 file changed
+6
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user