On Mo, 25 Jun 2018, Bram Moolenaar wrote:
>
> Patch 8.1.0115
> Problem: The matchparen plugin may throw an error.
> Solution: Change the skip argument from zero to "0".
> Files: runtime/plugin/matchparen.vim
I still think this part:
,----
| " If executing the expression determines that the cursor is currently in
| " one of the syntax types, then we want searchpairpos() to find the pair
| " within those syntax types (i.e., not skip). Otherwise, the cursor is
| " outside of the syntax types and s_skip should keep its value so we skip
any
| " matching pair inside the syntax types.
| if !has("syntax") || !exists("g:syntax_on")
| let s:skip = '0'
| else
`----
should actually be s_skip, because this is the only part in the file
that uses s:skip and setting a script local variable there does not seem
to make sense.
Best,
Christian
--
Ideale sind wie Sterne: Man kann sie nicht erreichen, aber man kann sich
nach ihnen orientieren.
--
--
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.