mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
parser: handle "control verbs" without close paren
This commit is contained in:
parent
084596bb5e
commit
1245156f44
@ -569,6 +569,9 @@ unichar readUtf8CodePoint4c(const char *s) {
|
||||
assert(0); // Should have thrown a parse error.
|
||||
throw LocatedParseError("Unknown control verb");
|
||||
};
|
||||
any => {
|
||||
throw LocatedParseError("Unknown control verb");
|
||||
};
|
||||
*|;
|
||||
|
||||
#############################################################
|
||||
|
@ -135,3 +135,4 @@
|
||||
138:/(*UNKNOWNVERB)foobar/ #Unknown control verb (*UNKNOWNVERB) at index 0.
|
||||
139:/foo(*UTF8)bar/ #(*UTF8) must be at start of expression, encountered at index 5.
|
||||
140:/(?i)(*UTF8)foobar/ #(*UTF8) must be at start of expression, encountered at index 6.
|
||||
141:/(*@&/ #Unknown control verb at index 2.
|
||||
|
Loading…
x
Reference in New Issue
Block a user