Mailinglist Archive: opensuse-bugs (4247 mails)

< Previous Next >
[Bug 1019613] vim yaml syntax highlighting super-slow with long words
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 12 Jan 2017 15:14:29 +0000
  • Message-id: <bug-1019613-21960-4xpPKe7Sea@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1019613
http://bugzilla.opensuse.org/show_bug.cgi?id=1019613#c4

--- Comment #4 from Ismail Donmez <idonmez@xxxxxxxx> ---
(In reply to Ismail Donmez from comment #3)
(In reply to Bernhard Wiedemann from comment #2)
found that commenting out /usr/share/vim/vim74/syntax/yaml.vim:113
avoids the issue:
"execute 'syn match yamlBlockMappingKey
/\s*\zs'.s:ns_plain_out.'\ze\s*:\%(\s\|$\)/ contained '.
" \'nextgroup=yamlKeyValueDelimiter'

so maybe drop or optimize that regexp together with upstream
to not be O(n^2) or even O(2^n) ?

The problem seems to be the new regexp engine. Since you did the most of the
work, I'll contact upstream to see if it's possible to fix regexp or the
engine.

Can you try the diff in
https://github.com/chase/vim-ansible-yaml/issues/11#issuecomment-65472625 ?

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
References