Add set shell := [...]
to grammar (#526)
This commit is contained in:
parent
e80bf34d9a
commit
d52b8f22a3
@ -43,6 +43,7 @@ item : recipe
|
|||||||
| alias
|
| alias
|
||||||
| assignment
|
| assignment
|
||||||
| export
|
| export
|
||||||
|
| setting
|
||||||
| eol
|
| eol
|
||||||
|
|
||||||
eol : NEWLINE
|
eol : NEWLINE
|
||||||
@ -54,6 +55,8 @@ assignment : NAME ':=' expression eol
|
|||||||
|
|
||||||
export : 'export' assignment
|
export : 'export' assignment
|
||||||
|
|
||||||
|
setting : 'set' 'shell' ':=' '[' string (',' string)* ','? ']'
|
||||||
|
|
||||||
expression : value '+' expression
|
expression : value '+' expression
|
||||||
| value
|
| value
|
||||||
|
|
||||||
@ -64,6 +67,9 @@ value : NAME '(' sequence? ')'
|
|||||||
| NAME
|
| NAME
|
||||||
| '(' expression ')'
|
| '(' expression ')'
|
||||||
|
|
||||||
|
string : STRING
|
||||||
|
| RAW_STRING
|
||||||
|
|
||||||
sequence : expression ',' sequence
|
sequence : expression ',' sequence
|
||||||
| expression ','?
|
| expression ','?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user