From d52b8f22a3679aad73fc9281bc8e6bf78ecc799f Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 11 Nov 2019 19:47:49 -0800 Subject: [PATCH] Add `set shell := [...]` to grammar (#526) --- GRAMMAR.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GRAMMAR.md b/GRAMMAR.md index d0d72cb..110ebf6 100644 --- a/GRAMMAR.md +++ b/GRAMMAR.md @@ -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 ','?