From 994c9c973e0fd771699c3a5c76bee11f9b744c84 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 1 Aug 2021 12:40:27 -0700 Subject: Changed how definitions work --- grammars/javascript.bp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'grammars/javascript.bp') diff --git a/grammars/javascript.bp b/grammars/javascript.bp index 438ddab..2691c62 100644 --- a/grammars/javascript.bp +++ b/grammars/javascript.bp @@ -8,8 +8,7 @@ comment: "//" .. $ / "/*" ..%\n "*/" string: `" ..%string-escape `" / `' ..%string-escape `' / `/ ..%string-escape `/ -keyword: - "abstract" / "arguments" / "await" / "boolean" / "break" / "byte" / "case" / +keyword: ("abstract" / "arguments" / "await" / "boolean" / "break" / "byte" / "case" / "catch" / "char" / "class" / "const" / "continue" / "debugger" / "default" / "delete" / "do" / "double" / "else" / "enum" / "eval" / "export" / "extends" / "false" / "final" / "finally" / "float" / "for" / "function" / "goto" / "if" / @@ -17,7 +16,7 @@ keyword: "long" / "native" / "new" / "null" / "package" / "private" / "protected" / "public" / "return" / "short" / "static" / "super" / "switch" / "synchronized" / "this" / "throw" / "throws" / "transient" / "true" / "try" / "typeof" / "var" / - "void" / "volatile" / "while" / "with" / "yield" + "void" / "volatile" / "while" / "with" / "yield") function-def: |"function"| __ [id__] parens / (id / parens) __ "=>" function: function-def __ braces import: |"import"| ..%braces (`; / $) -- cgit v1.2.3