diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-11 12:38:58 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-11 12:38:58 -0700 |
| commit | a93220972f8130732c8cd0267c0b14db77ac19ea (patch) | |
| tree | d1141bfdcded68c8b51d9ed6a735aea5134ab4c8 /grammars/shell.bp | |
| parent | 3359a804c8fe02ea4e9bc1abb7430109affdd535 (diff) | |
Overhaul of |-word boundaries (| is deprecated), performance
improvements for repeating matches, tweaks to the logic of word vs. id
Diffstat (limited to 'grammars/shell.bp')
| -rw-r--r-- | grammars/shell.bp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/grammars/shell.bp b/grammars/shell.bp index 1ad182d..ff13d0b 100644 --- a/grammars/shell.bp +++ b/grammars/shell.bp @@ -9,11 +9,10 @@ comment: `#..$ string: `" ..%(`\./subcommand/\n) `" / `' ..%\n `' / "<<" _ @delim=id _$ ..%\n (^delim$) subcommand: `` ..%\n `` / "$" parens -keyword: |( +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" -)| function-def: ^_ ["function"_] id _ `(_`) >(__`{) function: function-def __ braces var: `$ (id / braces) |
