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:04:50 +0000
  • Message-id: <bug-1019613-21960-26oEbSDbGy@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1019613
http://bugzilla.opensuse.org/show_bug.cgi?id=1019613#c2

--- Comment #2 from Bernhard Wiedemann <bwiedemann@xxxxxxxx> ---
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) ?

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