aboutsummaryrefslogtreecommitdiff
path: root/grammars/c++.bp
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-20 15:46:21 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-20 15:46:21 -0800
commitb50ad0cad099c99d4e739fc465b69779f661b77d (patch)
treee050a7b9b5dfcae56540a19527e05e918edb93cb /grammars/c++.bp
parentb4c8a33a0cbf4938b53458ded4d46efc6e8820ab (diff)
Fixed grammar syntax for `..%`
Diffstat (limited to 'grammars/c++.bp')
-rw-r--r--grammars/c++.bp4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammars/c++.bp b/grammars/c++.bp
index 843d42d..e8be4db 100644
--- a/grammars/c++.bp
+++ b/grammars/c++.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: |(
"alignas" / "alignof" / "and" / "and_eq" / "asm" / "atomic_cancel" / "atomic_commit" /
"atomic_noexcept" / "auto" / "bitand" / "bitor" / "bool" / "break" / "case" / "catch" /