comparison src/regexp_nfa.c @ 26958:d92e0d85923f v8.2.4008

patch 8.2.4008: error messages are spread out Commit: https://github.com/vim/vim/commit/677658ae49de31fe2e5b1fa6d93fdfab85a4362e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 5 16:09:06 2022 +0000 patch 8.2.4008: error messages are spread out Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Jan 2022 17:15:05 +0100
parents b34ddbca305c
children 85866e069c24
comparison
equal deleted inserted replaced
26957:e5b81e2bed22 26958:d92e0d85923f
2017 { 2017 {
2018 int endc = startc; 2018 int endc = startc;
2019 2019
2020 startc = oldstartc; 2020 startc = oldstartc;
2021 if (startc > endc) 2021 if (startc > endc)
2022 EMSG_RET_FAIL(_(e_reverse_range)); 2022 EMSG_RET_FAIL(_(e_reverse_range_in_character_class));
2023 2023
2024 if (endc > startc + 2) 2024 if (endc > startc + 2)
2025 { 2025 {
2026 // Emit a range instead of the sequence of 2026 // Emit a range instead of the sequence of
2027 // individual characters. 2027 // individual characters.
2126 2126
2127 return OK; 2127 return OK;
2128 } // if exists closing ] 2128 } // if exists closing ]
2129 2129
2130 if (reg_strict) 2130 if (reg_strict)
2131 EMSG_RET_FAIL(_(e_missingbracket)); 2131 EMSG_RET_FAIL(_(e_missing_rsb_after_str_lsb));
2132 // FALLTHROUGH 2132 // FALLTHROUGH
2133 2133
2134 default: 2134 default:
2135 { 2135 {
2136 int plen; 2136 int plen;