From 8df5aa2338453ebecb561df96a7c11d356400d77 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Sun, 10 Nov 2013 13:53:01 +1000 Subject: regexp: Enable additional regexp/regsub tests Many Tcl regexp tests now work correctly with Jim regexp Also update regsub/regexp wrong # args error message to match Tcl 8.6 Signed-off-by: Steve Bennett --- jim-regexp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jim-regexp.c') diff --git a/jim-regexp.c b/jim-regexp.c index 25e05a3..8eb457d 100644 --- a/jim-regexp.c +++ b/jim-regexp.c @@ -137,7 +137,7 @@ int Jim_RegexpCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv) if (argc < 3) { wrongNumArgs: Jim_WrongNumArgs(interp, 1, argv, - "?switches? exp string ?matchVar? ?subMatchVar subMatchVar ...?"); + "?-switch ...? exp string ?matchVar? ?subMatchVar ...?"); return JIM_ERR; } @@ -366,7 +366,7 @@ int Jim_RegsubCmd(Jim_Interp *interp, int argc, Jim_Obj *const *argv) if (argc < 4) { wrongNumArgs: Jim_WrongNumArgs(interp, 1, argv, - "?switches? exp string subSpec ?varName?"); + "?-switch ...? exp string subSpec ?varName?"); return JIM_ERR; } -- cgit v1.1