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 | 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 ','?