From 617b01a5b6aa3cadb25b2ff8639e330cfc6cf3c1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 11 Nov 2014 02:37:21 +0100 Subject: Update --- after/syntax/html.vim | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'after/syntax/html.vim') diff --git a/after/syntax/html.vim b/after/syntax/html.vim index 8c8e7381..b9dc9f98 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,5 +1,5 @@ " Language: CoffeeScript -" Maintainer: Mick Koch +" Maintainer: Mick Koch " URL: http://github.com/kchmck/vim-coffee-script " License: WTFPL @@ -18,8 +18,10 @@ if !g:less_html_style_tags endif " Unset (but preserve) so that less will run. -let s:pre_less_cur_syn = b:current_syntax -unlet b:current_syntax +if exists("b:current_syntax") + let s:pre_less_cur_syn = b:current_syntax + unlet b:current_syntax +endif " Inspired by code from github.com/kchmck/vim-coffee-script " and the html syntax file included with vim 7.4. @@ -30,7 +32,9 @@ syn include @htmlLess syntax/less.vim syn region lessStyle start=++ contains=@htmlLess,htmlTag,htmlEndTag,htmlCssStyleComment,@htmlPreproc containedin=htmlHead " Reset since 'less' isn't really the current_syntax. -let b:current_syntax = s:pre_less_cur_syn +if exists("s:pre_less_cur_syn") + let b:current_syntax = s:pre_less_cur_syn +endif " Language: Colorful CSS Color Preview " Author: Aristotle Pagaltzis -- cgit v1.2.3