diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-10-13 11:22:55 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-10-13 11:22:55 +0300 |
commit | 13bfd4900cb896756442778d82b3be3bac074b32 (patch) | |
tree | 620504e5a69e3cb98b1684bd9460bfee23ea89bb | |
parent | 964e19b54a9ee3e03658e2a733c1b50ee8624397 (diff) | |
download | egawk-13bfd4900cb896756442778d82b3be3bac074b32.tar.gz egawk-13bfd4900cb896756442778d82b3be3bac074b32.tar.bz2 egawk-13bfd4900cb896756442778d82b3be3bac074b32.zip |
Improve error msg for compiling bracket expressions.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | regcomp.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2014-10-13 Arnold D. Robbins <arnold@skeeve.com> + + * regcomp.c (__re_error_msgid): Make error message for REG_EBRACK + more helpful - also used for unmatched [:, [., [=. + Thanks to Davide Brini for raising the issue. + 2014-10-12 Arnold D. Robbins <arnold@skeeve.com> * README: Remove Pat Rankin from VMS duties, per his request. @@ -149,7 +149,7 @@ const char __re_error_msgid[] attribute_hidden = gettext_noop ("Invalid back reference") /* REG_ESUBREG */ "\0" #define REG_EBRACK_IDX (REG_ESUBREG_IDX + sizeof "Invalid back reference") - gettext_noop ("Unmatched [ or [^") /* REG_EBRACK */ + gettext_noop ("Unmatched [, [^, [:, [., or [=") /* REG_EBRACK */ "\0" #define REG_EPAREN_IDX (REG_EBRACK_IDX + sizeof "Unmatched [ or [^") gettext_noop ("Unmatched ( or \\(") /* REG_EPAREN */ |