summaryrefslogtreecommitdiffstats
path: root/after/syntax/html.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-09-11 13:24:17 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-09-11 13:24:17 +0200
commit0244e228faf6ee71750cbca3bdcd18411a927d22 (patch)
treea72e5c9839ea593f6edc23f7f0e637e0a4a89413 /after/syntax/html.vim
parentab61d2ac8eafc9c10097577736602da48ec568ca (diff)
downloadvim-polyglot-0244e228faf6ee71750cbca3bdcd18411a927d22.tar.gz
vim-polyglot-0244e228faf6ee71750cbca3bdcd18411a927d22.zip
Update
Diffstat (limited to 'after/syntax/html.vim')
-rw-r--r--after/syntax/html.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/after/syntax/html.vim b/after/syntax/html.vim
index 5881b3e8..5979f111 100644
--- a/after/syntax/html.vim
+++ b/after/syntax/html.vim
@@ -5,6 +5,10 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script')
" URL: http://github.com/kchmck/vim-coffee-script
" License: WTFPL
+if exists('b:current_syntax')
+ let s:current_syntax_save = b:current_syntax
+endif
+
" Syntax highlighting for text/coffeescript script tags
syn include @htmlCoffeeScript syntax/coffee.vim
syn region coffeeScript start=#<script [^>]*type="text/coffeescript"[^>]*>#
@@ -12,6 +16,11 @@ syn region coffeeScript start=#<script [^>]*type="text/coffeescript"[^>]*>#
\ contains=@htmlCoffeeScript,htmlScriptTag,@htmlPreproc
\ containedin=htmlHead
+if exists('s:current_syntax_save')
+ let b:current_syntax = s:current_syntax_save
+ unlet s:current_syntax_save
+endif
+
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'glsl') == -1