aboutsummaryrefslogtreecommitdiff
path: root/grammars/rust.bp
diff options
context:
space:
mode:
Diffstat (limited to 'grammars/rust.bp')
-rw-r--r--grammars/rust.bp4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammars/rust.bp b/grammars/rust.bp
index 003427a..3585732 100644
--- a/grammars/rust.bp
+++ b/grammars/rust.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: "//" .. $ / "/*" .. "*/" % (comment / \n)
-string: `"..`" % (`\.)
+comment: "//" .. $ / "/*" ..%(comment / \n) "*/"
+string: `" ..%(`\.) `"
keyword: |(
"as" / "break" / "const" / "continue" / "crate" / "else" / "enum" / "extern" /
"false" / "fn" / "for" / "if" / "impl" / "in" / "let" / "loop" / "match" /