diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-10 20:14:21 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-10 20:14:21 +0100 |
commit | 571f76e6b62ef4535322345094b23605d7308e72 (patch) | |
tree | ad45b82f26243740eea48f548484d0795f1d1c46 /after/syntax | |
parent | e4f906d9a543dfb3520eebe6806eac2ff38c4388 (diff) | |
download | vim-polyglot-571f76e6b62ef4535322345094b23605d7308e72.tar.gz vim-polyglot-571f76e6b62ef4535322345094b23605d7308e72.zip |
Remove rare html extensions, fixes #280
Diffstat (limited to 'after/syntax')
-rw-r--r-- | after/syntax/haml.vim | 27 | ||||
-rw-r--r-- | after/syntax/html.vim | 67 |
2 files changed, 0 insertions, 94 deletions
diff --git a/after/syntax/haml.vim b/after/syntax/haml.vim deleted file mode 100644 index da2ea2b1..00000000 --- a/after/syntax/haml.vim +++ /dev/null @@ -1,27 +0,0 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 - finish -endif - -" Language: CoffeeScript -" Maintainer: Sven Felix Oberquelle <Svelix.Github@gmail.com> -" URL: http://github.com/kchmck/vim-coffee-script -" License: WTFPL - - -if exists('b:current_syntax') - let s:current_syntax_save = b:current_syntax -endif - -" Inherit coffee from html so coffeeComment isn't redefined and given higher -" priority than hamlInterpolation. -syn cluster hamlCoffeescript contains=@htmlCoffeeScript -syn region hamlCoffeescriptFilter matchgroup=hamlFilter -\ start="^\z(\s*\):coffee\z(script\)\?\s*$" -\ end="^\%(\z1 \| *$\)\@!" -\ contains=@hamlCoffeeScript,hamlInterpolation -\ keepend - -if exists('s:current_syntax_save') - let b:current_syntax = s:current_syntax_save - unlet s:current_syntax_save -endif diff --git a/after/syntax/html.vim b/after/syntax/html.vim index a324db1a..fcb7fd51 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,40 +1,3 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 - finish -endif - -" Language: CoffeeScript -" Maintainer: Mick Koch <mick@kochm.co> -" 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['"]\?[^>]*># -\ end=#</script>#me=s-1 keepend -\ 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 -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'glsl') != -1 - finish -endif - -" Language: OpenGL Shading Language -" Maintainer: Sergey Tikhomirov <sergey@tikhomirov.io> - -syn include @GLSL syntax/glsl.vim -syn region ShaderScript - \ start="<script [^>]*type=\('\|\"\)x-shader/x-\(vertex\|fragment\)\('\|\"\)[^>]*>" - \ keepend - \ end="</script>"me=s-1 - \ contains=@GLSL,htmlScriptTag,@htmlPreproc if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 finish endif @@ -51,33 +14,3 @@ endif " https://github.com/w3c/html/issues/694 syntax region htmlComment start=+<!--+ end=+-->+ contains=@Spell syntax region htmlComment start=+<!DOCTYPE+ keepend end=+>+ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'less') != -1 - finish -endif - -if !exists("g:less_html_style_tags") - let g:less_html_style_tags = 1 -endif - -if !g:less_html_style_tags - finish -endif - -" Unset (but preserve) so that less will run. -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. - -syn include @htmlLess syntax/less.vim - -" We have to explicitly add to htmlHead (containedin) as that region specifies 'contains'. -syn region lessStyle start=+<style [^>]*type *=[^>]*text/less[^>]*>+ keepend end=+</style>+ contains=@htmlLess,htmlTag,htmlEndTag,htmlCssStyleComment,@htmlPreproc containedin=htmlHead - -" Reset since 'less' isn't really the current_syntax. -if exists("s:pre_less_cur_syn") - let b:current_syntax = s:pre_less_cur_syn -endif |