Am 15.05.2013 13:06, schrieb Bram Moolenaar:
Karsten Hopp wrote:

> Attached is a simple text file that triggers the E363: error on some
> of the brackets.  Setting maxmempattern to 5000 instead of using the
> default 1000 works around this, but asthereseems to be nothing special
> in that file I suspect a bug in the matchparen.vim plugin.
>
> Tested with vim-7.3 patchlevel 944 and matchparen.vim from 2013 Mar 19.
>
> More info is at https://bugzilla.redhat.com/show_bug.cgi?id=951684

I cannot reproduce it.  Any specific bracket to move over?


Sorry, matchparen.vim isn't at fault at all, it just was what triggered the 
error:

I've tried again on a different system and there it worked without any issues.
Comparing the vim variables led me to 'filetype=asciidoc' on the system where 
it failed.
That plugin is provided by the asciidoc package 
(http://www.methods.co.nz/asciidoc/) and not part of the vim package at all.

But maybe you have an idea why these two lines cause this problem and how to optimize them, because I have no clue what they're trying to do:

syn match asciidocEntityRef /\\\@<!&[#a-zA-Z]\S\{-};/
syn match asciidocQuotedEmphasized /\(^\|[| \t([.,=\]]\)\@<=_\([ )\n\t]\)\@!\(.\|\n\(\s*\n\)\@!\)\{-}\S\(_\([| \t)[\],.?!;:=]\|$\)\@=\)/ contains=asciidocEntityRef


To reproduce, open the attachement from my last mail, add those two syntax definitions and move the cursor down on the very first column until you get the error.


   Karsten

--
--
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/groups/opt_out.


Raspunde prin e-mail lui