diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-05-22 17:12:11 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-05-22 17:25:55 +0200 |
commit | f6e9e12a6c6fb52e62ab74898ea22042676e25fb (patch) | |
tree | 9863db9442845e41a8931db885965afb7d5b8563 /misc/_vimrc_local.vim | |
parent | 96f37f46dbf500cec363df5eb85ea3427326be71 (diff) | |
download | clufter-f6e9e12a6c6fb52e62ab74898ea22042676e25fb.tar.gz clufter-f6e9e12a6c6fb52e62ab74898ea22042676e25fb.tar.xz clufter-f6e9e12a6c6fb52e62ab74898ea22042676e25fb.zip |
Local vimrc: simplify + (perhaps) speed up regex match
The problem was with XSLT snippets internally interleaved with Python
code (see ResourceSpec).
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'misc/_vimrc_local.vim')
-rw-r--r-- | misc/_vimrc_local.vim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/misc/_vimrc_local.vim b/misc/_vimrc_local.vim index fb2632f..d00ce07 100644 --- a/misc/_vimrc_local.vim +++ b/misc/_vimrc_local.vim @@ -1,8 +1,8 @@ " highlight the string enclosed by ' triples as XSLT unlet b:current_syntax -syntax include @XSLT syntax/xslt.vim -syntax region xsltSnip start="^.\+'''[\\]\?\n" end="^'''" contains=@XSLT -syn match xslElement '\%(clufter:\)\@<=descent' -syn match xslElement '\%(clufter:\)\@<=descent-mix' -syn match xslElement '\%(clufter:\)\@<=message' -syn match xslElement '\%(clufter:\)\@<=snippet' +syn include @XSLT syntax/xslt.vim +syn region xsltSnip start="'''" end="'''" contains=@XSLT +syn match xslElement '\%(clufter:\)\@8<=descent' +syn match xslElement '\%(clufter:\)\@8<=descent-mix' +syn match xslElement '\%(clufter:\)\@8<=message' +syn match xslElement '\%(clufter:\)\@8<=snippet' |