commit | 966e58e413ffa88af8d748e697aa2999571fcd7b | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jun 05 16:54:08 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jun 05 16:54:08 2017 +0200 |
tree | 4f62a3029956f9d677337e1fb5ce698260aa739d | |
parent | c5e2b040b490c2f4dd50c945840bc176bfcccb29 [diff] [blame] |
patch 8.0.0623: error for invalid regexp is not very informative Problem: The message "Invalid range" is used for multiple errors. Solution: Add two more specific error messages. (Itchyny, Ken Hamada)
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index c490acb..4e111f1 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c
@@ -1853,7 +1853,7 @@ endc = startc; startc = oldstartc; if (startc > endc) - EMSG_RET_FAIL(_(e_invrange)); + EMSG_RET_FAIL(_(e_reverse_range)); if (endc > startc + 2) {