comparison src/regexp_bt.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 b31cc7630773
comparison
equal deleted inserted replaced
26957:e5b81e2bed22 26958:d92e0d85923f
1780 // Handle \o40, \x20 and \u20AC style sequences 1780 // Handle \o40, \x20 and \u20AC style sequences
1781 if (endc == '\\' && !reg_cpo_lit && !reg_cpo_bsl) 1781 if (endc == '\\' && !reg_cpo_lit && !reg_cpo_bsl)
1782 endc = coll_get_char(); 1782 endc = coll_get_char();
1783 1783
1784 if (startc > endc) 1784 if (startc > endc)
1785 EMSG_RET_NULL(_(e_reverse_range)); 1785 EMSG_RET_NULL(_(e_reverse_range_in_character_class));
1786 if (has_mbyte && ((*mb_char2len)(startc) > 1 1786 if (has_mbyte && ((*mb_char2len)(startc) > 1
1787 || (*mb_char2len)(endc) > 1)) 1787 || (*mb_char2len)(endc) > 1))
1788 { 1788 {
1789 // Limit to a range of 256 chars. 1789 // Limit to a range of 256 chars.
1790 if (endc > startc + 256) 1790 if (endc > startc + 256)
1791 EMSG_RET_NULL(_(e_large_class)); 1791 EMSG_RET_NULL(_(e_range_too_large_in_character_class));
1792 while (++startc <= endc) 1792 while (++startc <= endc)
1793 regmbc(startc); 1793 regmbc(startc);
1794 } 1794 }
1795 else 1795 else
1796 { 1796 {
2006 skipchr(); // let's be friends with the lexer again 2006 skipchr(); // let's be friends with the lexer again
2007 *flagp |= HASWIDTH | SIMPLE; 2007 *flagp |= HASWIDTH | SIMPLE;
2008 break; 2008 break;
2009 } 2009 }
2010 else if (reg_strict) 2010 else if (reg_strict)
2011 EMSG2_RET_NULL(_(e_missingbracket), reg_magic > MAGIC_OFF); 2011 EMSG2_RET_NULL(_(e_missing_rsb_after_str_lsb),
2012 reg_magic > MAGIC_OFF);
2012 } 2013 }
2013 // FALLTHROUGH 2014 // FALLTHROUGH
2014 2015
2015 default: 2016 default:
2016 { 2017 {