diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-08-01 12:40:27 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-08-01 12:40:27 -0700 |
| commit | 994c9c973e0fd771699c3a5c76bee11f9b744c84 (patch) | |
| tree | 8257c1abe2d18a50a46a1d712eadbd25fd7e4f8b /grammars/shell.bp | |
| parent | cb9b4c40d87480bc794b90c2a36ed0f4c3240d8a (diff) | |
Changed how definitions work
Diffstat (limited to 'grammars/shell.bp')
| -rw-r--r-- | grammars/shell.bp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/grammars/shell.bp b/grammars/shell.bp index 72b83cc..76cdcfa 100644 --- a/grammars/shell.bp +++ b/grammars/shell.bp @@ -10,10 +10,9 @@ comment: `#..$ string: `" ..%(string-escape / subcommand / \n) `" / `' ..%\n `' / "<<" _ @delim=id _$ ..%\n (^delim$) string-escape: `\ `",` subcommand: `` ..%\n `` / "$" (parens/braces) -keyword: - "echo" / "read" / "set" / "unset" / "readonly" / "shift" / "export" / "if" / "fi" / +keyword: ("echo" / "read" / "set" / "unset" / "readonly" / "shift" / "export" / "if" / "fi" / "else" / "while" / "do" / "done" / "for" / "until" / "case" / "esac" / "break" / - "continue" / "exit" / "return" / "trap" / "wait" / "eval" / "exec" / "ulimit" / "umask" + "continue" / "exit" / "return" / "trap" / "wait" / "eval" / "exec" / "ulimit" / "umask") function-def: ^_ ["function"_] id _ `(_`) >(__`{) function: function-def __ braces var: `$ (id / braces) |
