Permalink
Browse files

wiki code tag highlight minor fix

  • Loading branch information...
1 parent cacf312 commit 24556766c552dd39c6efdf8649790564cc78d4c0 @lilydjwg committed Mar 30, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 syntax/wiki/code.vim
View
@@ -8,6 +8,8 @@
syntax region wikiCodePlain matchgroup=htmlTag start="<code \w\+>" end="</code>"
hi link wikiCodePlain Normal
+let b:current_syntax_save = b:current_syntax
+
unlet b:current_syntax
syntax include @Python syntax/python.vim
syntax region wikiCodePython matchgroup=htmlTag start="<code python>" end="</code>" contains=@Python
@@ -27,4 +29,6 @@ syntax region wikiCodeLua matchgroup=htmlTag start="<code lua>" end="</code>" co
unlet b:current_syntax
syntax include @Javascript syntax/javascript.vim
syntax region wikiCodeJavascript matchgroup=htmlTag start="<code javascript>" end="</code>" contains=@Javascript
-unlet b:current_syntax
+
+let b:current_syntax = b:current_syntax_save
+unlet b:current_syntax_save

0 comments on commit 2455676

Please sign in to comment.