diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2015-07-18 23:05:45 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-07-18 23:05:45 +0200 |
commit | 92ab75408df8bff49bb29e113b3cc159d1ac3105 (patch) | |
tree | 77cd9b27eb0b1e43f8c456520748e6715bc7a250 /after/syntax/html.vim | |
parent | f977779693518c748d87fb5babd98f6ef411837c (diff) | |
download | vim-polyglot-92ab75408df8bff49bb29e113b3cc159d1ac3105.tar.gz vim-polyglot-92ab75408df8bff49bb29e113b3cc159d1ac3105.zip |
Allow for disabling individual languages, closes #66
Diffstat (limited to 'after/syntax/html.vim')
-rw-r--r-- | after/syntax/html.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/after/syntax/html.vim b/after/syntax/html.vim index b9dc9f98..7ea622c6 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 + " Language: CoffeeScript " Maintainer: Mick Koch <mick@kochm.co> " URL: http://github.com/kchmck/vim-coffee-script @@ -9,6 +11,10 @@ syn region coffeeScript start=#<script [^>]*type="text/coffeescript"[^>]*># \ end=#</script>#me=s-1 keepend \ contains=@htmlCoffeeScript,htmlScriptTag,@htmlPreproc \ containedin=htmlHead + +endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1 + if !exists("g:less_html_style_tags") let g:less_html_style_tags = 1 endif @@ -35,6 +41,10 @@ syn region lessStyle start=+<style [^>]*type *=[^>]*text/less[^>]*>+ keepend end if exists("s:pre_less_cur_syn") let b:current_syntax = s:pre_less_cur_syn endif + +endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1 + " Language: Colorful CSS Color Preview " Author: Aristotle Pagaltzis <pagaltzis@gmx.de> @@ -42,3 +52,5 @@ if !( has('gui_running') || &t_Co==256 ) | finish | endif " default html syntax should already be including the css syntax syn cluster colorableGroup add=htmlString,htmlCommentPart + +endif |