From b50ad0cad099c99d4e739fc465b69779f661b77d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 20 Jan 2021 15:46:21 -0800 Subject: Fixed grammar syntax for `..%` --- grammars/javascript.bp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'grammars/javascript.bp') 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 (`; / $) -- cgit v1.2.3