aboutsummaryrefslogtreecommitdiff
path: root/jimregexp.h
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2020-05-04 20:43:46 +1000
committerSteve Bennett <steveb@workware.net.au>2020-05-04 21:57:37 +1000
commitac35b8a6ec417f75b5ec86ca64ea1614a8170a38 (patch)
tree2f5b8ff0a91946a84b1b8f6ec8da82f539d5cf31 /jimregexp.h
parentae1a518e6edc96cb54f6d6401fd6a59656abe8a9 (diff)
downloadjimtcl-ac35b8a6ec417f75b5ec86ca64ea1614a8170a38.zip
jimtcl-ac35b8a6ec417f75b5ec86ca64ea1614a8170a38.tar.gz
jimtcl-ac35b8a6ec417f75b5ec86ca64ea1614a8170a38.tar.bz2
regexp: Improved error message
Detect and produce an error for missing closing bracket ] Consider a trailing backslash as an invalid escape Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jimregexp.h')
-rw-r--r--jimregexp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/jimregexp.h b/jimregexp.h
index b7598d4..c8bf8c3 100644
--- a/jimregexp.h
+++ b/jimregexp.h
@@ -91,9 +91,10 @@ enum {
REG_ERR_NESTED_COUNT,
REG_ERR_INTERNAL,
REG_ERR_COUNT_FOLLOWS_NOTHING,
- REG_ERR_TRAILING_BACKSLASH,
+ REG_ERR_INVALID_ESCAPE,
REG_ERR_CORRUPTED,
REG_ERR_NULL_CHAR,
+ REG_ERR_UNMATCHED_BRACKET,
REG_ERR_NUM
};