Add set shell := [...] to grammar (#526)

This commit is contained in:
Casey Rodarmor 2019-11-11 19:47:49 -08:00 committed by GitHub
parent e80bf34d9a
commit d52b8f22a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,7 @@ item : recipe
| alias
| assignment
| export
| setting
| eol
eol : NEWLINE
@ -54,6 +55,8 @@ assignment : NAME ':=' expression eol
export : 'export' assignment
setting : 'set' 'shell' ':=' '[' string (',' string)* ','? ']'
expression : value '+' expression
| value
@ -64,6 +67,9 @@ value : NAME '(' sequence? ')'
| NAME
| '(' expression ')'
string : STRING
| RAW_STRING
sequence : expression ',' sequence
| expression ','?