aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-19 11:52:20 +0200
committerMattias Andrée <maandree@kth.se>2021-04-19 11:52:20 +0200
commitd46cf0fc292f0030d4917c89c53646d46eb56205 (patch)
tree63684a072f74852779becb17cd384a812a4e3d30
parentUpdate version number (diff)
downloadlibparser-d46cf0fc292f0030d4917c89c53646d46eb56205.tar.gz
libparser-d46cf0fc292f0030d4917c89c53646d46eb56205.tar.bz2
libparser-d46cf0fc292f0030d4917c89c53646d46eb56205.tar.xz
Fix grammar doc: _comment_char: reject double quote
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--README2
-rw-r--r--libparser.72
2 files changed, 2 insertions, 2 deletions
diff --git a/README b/README
index 684a6e9..1e341c3 100644
--- a/README
+++ b/README
@@ -35,7 +35,7 @@ EXTENDED DESCRIPTION
(* WHITESPACE/COMMENTS, THE GRAMMAR IS FREE-FORM *)
- _comment_char = _space | !"*", "\"", <"!", 0xFF>;
+ _comment_char = _space | !"*", !"\"", <"!", 0xFF>;
_comment_tail = [_comment_char], [_string], ("*)" | _comment_tail | -);
_comment = "(*", _comment_tail;
diff --git a/libparser.7 b/libparser.7
index cb1d763..406f6ca 100644
--- a/libparser.7
+++ b/libparser.7
@@ -47,7 +47,7 @@ _nonascii = <128, 255>;
(* WHITESPACE/COMMENTS, THE GRAMMAR IS FREE-FORM *)
-_comment_char = _space | !\(dq*\(dq, <\(dq!\(dq, 0xFF>;
+_comment_char = _space | !\(dq*\(dq, !\(dq\e\(dq\(dq, <\(dq!\(dq, 0xFF>;
_comment_tail = [_comment_char], [_string], (\(dq*)\(dq | _comment_tail | -);
_comment = \(dq(*\(dq, _comment_tail;