aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-19 11:31:42 +0200
committerMattias Andrée <maandree@kth.se>2021-04-19 11:31:42 +0200
commit753a7386409c0ed2b3eb6f1567d24ff78e22b1fe (patch)
tree6050f4937c61671f196df6a6b2353bea25b2a6a7
parentAdd rejection + fix documentation of comment syntax (can contain string) (diff)
downloadlibparser-753a7386409c0ed2b3eb6f1567d24ff78e22b1fe.tar.gz
libparser-753a7386409c0ed2b3eb6f1567d24ff78e22b1fe.tar.bz2
libparser-753a7386409c0ed2b3eb6f1567d24ff78e22b1fe.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--calc-example/calc.syntax2
1 files changed, 1 insertions, 1 deletions
diff --git a/calc-example/calc.syntax b/calc-example/calc.syntax
index 8051f57..27c47a1 100644
--- a/calc-example/calc.syntax
+++ b/calc-example/calc.syntax
@@ -1,5 +1,5 @@
_WHITESPACE = " " | "\t" | " ";
-_COMMENT = "(*", {!"*)", <0, 0xFF>}, "*)";
+_COMMENT = "(*", {!"*)", <0, 0xFF>}, ("*)" | -);
_ = {_WHITESPACE | _COMMENT};