vim-vimlparser icon indicating copy to clipboard operation
vim-vimlparser copied to clipboard

"EVP_E492: Not an editor command" after escaped bar

Open blueyed opened this issue 6 years ago • 2 comments
trafficstars

Given:

syn match foo +\(\\\\\|.\)\{-}[^\\]"+

Results in:

t-synerror.vim:1:25:Error: EVP_E492: Not an editor command: ){-}[^\]"+

It seems to mistake the (escaped) "|" for a command separator (bar) therein.

(seen in Vim's own syntax/vim.vim: https://github.com/blueyed/vim/blob/a4f4d62696782db3aa336e0bc576ddf5263ff36a/runtime/syntax/vim.vim#L310)

blueyed avatar Jun 01 '19 02:06 blueyed

I've been annoyed at this bug for some time now. I'm curious: Is there an easy way to disable the linter temporarily to avoid this false positive? E.g. something like a comment directive?

lervag avatar May 06 '21 20:05 lervag

Unfortunate workaround to get this to work in pipelines:

sed -i 's/^syntax .*//' syntax/*.vim
vint .

Or even:

rm -rf syntax/
vint .

rbong avatar Jan 01 '22 08:01 rbong