From d46cf0fc292f0030d4917c89c53646d46eb56205 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 19 Apr 2021 11:52:20 +0200 Subject: Fix grammar doc: _comment_char: reject double quote MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 2 +- libparser.7 | 2 +- 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; -- cgit v1.2.3-70-g09d2