mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4978: no error if engine selection atom is not at the start
Problem: No error if engine selection atom is not at the start. Solution: Give an error. (Christian Brabandt, closes #10439)
This commit is contained in:
committed by
Bram Moolenaar
parent
e2bd8600b8
commit
360da40b47
@@ -1592,6 +1592,14 @@ nfa_regatom(void)
|
||||
break;
|
||||
|
||||
case '#':
|
||||
if (regparse[0] == '=' && regparse[1] >= 48
|
||||
&& regparse[1] <= 50)
|
||||
{
|
||||
// misplaced \%#=1
|
||||
semsg(_(e_atom_engine_must_be_at_start_of_pattern),
|
||||
regparse[1]);
|
||||
return FAIL;
|
||||
}
|
||||
EMIT(NFA_CURSOR);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user