summaryrefslogtreecommitdiffstats
path: root/after
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-10-10 17:15:29 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2015-10-10 17:15:29 +0200
commita6b0efd5301406adb44dfb12bfc73cf40f28b55b (patch)
treeff6ef884650dd709860cbcce29b44ec2cd1ffd9a /after
parent0de043adbc144510635702dadedc946e3c69f64e (diff)
downloadvim-polyglot-a6b0efd5301406adb44dfb12bfc73cf40f28b55b.tar.gz
vim-polyglot-a6b0efd5301406adb44dfb12bfc73cf40f28b55b.zip
Add glsl and kotlin languages, fixes #72, #71
Diffstat (limited to 'after')
-rw-r--r--after/syntax/html.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/after/syntax/html.vim b/after/syntax/html.vim
index 5211a9cc..5881b3e8 100644
--- a/after/syntax/html.vim
+++ b/after/syntax/html.vim
@@ -13,6 +13,19 @@ syn region coffeeScript start=#<script [^>]*type="text/coffeescript"[^>]*>#
\ containedin=htmlHead
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'glsl') == -1
+
+" 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
+
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1
if !exists("g:less_html_style_tags")