Allow multiple consecutive string literals
This commit is contained in:
parent
2c33cccaf7
commit
c5c0bddc33
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user