summaryrefslogtreecommitdiffstats
path: root/after/syntax/html.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 0ba2c14d..43c0c41e 100644
--- a/after/syntax/html.vim
+++ b/after/syntax/html.vim
@@ -22,6 +22,19 @@ if exists('s:current_syntax_save')
endif
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, 'html5') == -1
" Vim syntax file