diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-19 11:52:20 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-19 11:52:20 +0200 |
commit | d46cf0fc292f0030d4917c89c53646d46eb56205 (patch) | |
tree | 63684a072f74852779becb17cd384a812a4e3d30 | |
parent | Update version number (diff) | |
download | libparser-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>
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | libparser.7 | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; |