CC Charles since the problem is caused by the syntax/vim.vim syntax script.

Hi,
since the last vim.vim runtime update, the following example from `:h 
catch` is flagged as error (the `\)` part)

,----
| :catch /^Vim\%((\a\+)\)\=:E123/       " catch error E123
`----

I initially was confused about the syntax rules, because the `\)` is 
matched as vimPatSepErr, but that seems to be the case for several 
years, so it cannot be the source of the problem.

After closer inspection, it seems this change from commit 
d2855f5454c5c6c is responsible:

,----
|   hi def link vimParenSep       Delimiter
| - hi def link vimPatSepErr      vimPatSep
| + hi def link vimPatSepErr      vimError
`----

And indeed after reverting that part:

diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index abd2d1801..40c400bc6 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -905,7 +905,7 @@ if !exists("skip_vim_syntax_inits")
  hi def link vimOper   Operator
  hi def link vimOption PreProc
  hi def link vimParenSep       Delimiter
- hi def link vimPatSepErr      vimError
+ hi def link vimPatSepErr      vimPatSep
  hi def link vimPatSepR        vimPatSep
  hi def link vimPatSep SpecialChar
  hi def link vimPatSepZone     vimString

It looks as expected. So please apply this small change.

Best,
Christian

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui