aboutsummaryrefslogtreecommitdiff
path: root/grammars/javascript.bp
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-05-10 23:46:46 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-05-10 23:46:46 -0700
commit17dbe5d9e8fcbe2c5f2f494658868b28857a25ca (patch)
treeb5fafea0caac649ab93c273e1d81f476a13624fc /grammars/javascript.bp
parent943aa0b71a8c2a03fe4b57317d4c7bc7df7d014c (diff)
Added {word} feature and cleaned up the code some.
Diffstat (limited to 'grammars/javascript.bp')
-rw-r--r--grammars/javascript.bp4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammars/javascript.bp b/grammars/javascript.bp
index fa5c8d3..b663050 100644
--- a/grammars/javascript.bp
+++ b/grammars/javascript.bp
@@ -19,6 +19,6 @@ keyword: |(
"this" / "throw" / "throws" / "transient" / "true" / "try" / "typeof" / "var" /
"void" / "volatile" / "while" / "with" / "yield"
)|
-function-def: |"function"| __ [id__] parens / (id / parens) __ "=>"
+function-def: {function} __ [id__] parens / (id / parens) __ "=>"
function: function-def __ braces
-import: |"import"| ..%braces (`; / $)
+import: {import} ..%braces (`; / $)