aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-19 11:56:08 +0200
committerMattias Andrée <maandree@kth.se>2021-04-19 11:56:08 +0200
commit77ca25bfb0ec92303ada71400e298840ea4ba4ff (patch)
tree211b90450992a85591241009a98fdde599267c4e
parentFix grammar doc: _comment_char: reject double quote (diff)
downloadlibparser-77ca25bfb0ec92303ada71400e298840ea4ba4ff.tar.gz
libparser-77ca25bfb0ec92303ada71400e298840ea4ba4ff.tar.bz2
libparser-77ca25bfb0ec92303ada71400e298840ea4ba4ff.tar.xz
Fix grammar doc: _comment: do not accept characters lower than regular blank space
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--README2
-rw-r--r--libparser.72
2 files changed, 2 insertions, 2 deletions
diff --git a/README b/README
index 1e341c3..9091ce7 100644
--- a/README
+++ b/README
@@ -56,7 +56,7 @@ EXTENDED DESCRIPTION
_escape_hex = ("x" | "X"), _xdigit, _xdigit;
_escape_octal = _octal, {_octal}; (* May not exceed 255 in base 10 *)
_escape = _escape_simple | _escape_hex | _escape_octal | -;
- _character = "\\", _escape | !"\"", <1, 0xFF>;
+ _character = "\\", _escape | !"\"", <" ", 0xFF>;
_string = "\"", _character, {_character}, ("\"" | -);
string = _string
diff --git a/libparser.7 b/libparser.7
index 406f6ca..c81f746 100644
--- a/libparser.7
+++ b/libparser.7
@@ -68,7 +68,7 @@ _escape_simple = \(dq\e\e\(dq | \(dq\e\(dq\(dq | \(dq'\(dq | \(dqa\(dq | \(dqb
_escape_hex = (\(dqx\(dq | \(dqX\(dq), _xdigit, _xdigit;
_escape_octal = _octal, {_octal}; (* May not exceed 255 in base 10 *)
_escape = _escape_simple | _escape_hex | _escape_octal | -;
-_character = \(dq\e\e\(dq, _escape | !\(dq\e\(dq\(dq, <1, 0xFF>;
+_character = \(dq\e\e\(dq, _escape | !\(dq\e\(dq\(dq, <\(dq \(dq, 0xFF>;
_string = \(dq\e\(dq\(dq, _character, {_character}, (\(dq\e\(dq\(dq | -);
string = _string;