dots/.config/nvim/after/syntax/html.vim

12 lines
385 B
VimL

" 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
\ containedin=javaScript
\ contained
\ end="</script>"me=s-1
\ contains=@GLSL,htmlScriptTag,@htmlPreproc