aboutsummaryrefslogtreecommitdiff
path: root/grammars/javascript.bp
diff options
context:
space:
mode:
Diffstat (limited to 'grammars/javascript.bp')
-rw-r--r--grammars/javascript.bp6
1 files changed, 3 insertions, 3 deletions
diff --git a/grammars/javascript.bp b/grammars/javascript.bp
index 49322c2..fa5c8d3 100644
--- a/grammars/javascript.bp
+++ b/grammars/javascript.bp
@@ -6,8 +6,8 @@
# full parse tree, and having one makes the task considerably more complicated.
# See the accompanying README.md for more info.
-comment: "//" .. $ / "/*" .. "*/" % \n
-string: `"..`" % (`\.) / `'..`' % (`\.) / `/ .. `/ % (`\.)
+comment: "//" .. $ / "/*" ..%\n "*/"
+string: `" ..%(`\.) `" / `' ..%(`\.) `' / `/ ..%(`\.) `/
keyword: |(
"abstract" / "arguments" / "await" / "boolean" / "break" / "byte" / "case" /
"catch" / "char" / "class" / "const" / "continue" / "debugger" / "default" /
@@ -21,4 +21,4 @@ keyword: |(
)|
function-def: |"function"| __ [id__] parens / (id / parens) __ "=>"
function: function-def __ braces
-import: |"import"| ..(`; / $) % braces
+import: |"import"| ..%braces (`; / $)