[nvim] Add a gocsstmpl template
This is based on gotexttmpl and css highlighting.
This commit is contained in:
parent
75e32e473a
commit
e5505a7a69
1 changed files with 17 additions and 0 deletions
17
config/nvim/syntax/gocsstmpl.vim
Normal file
17
config/nvim/syntax/gocsstmpl.vim
Normal file
|
@ -0,0 +1,17 @@
|
|||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
if !exists("g:main_syntax")
|
||||
let g:main_syntax = 'css'
|
||||
endif
|
||||
|
||||
runtime! syntax/gotexttmpl.vim
|
||||
runtime! syntax/css.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
syn cluster htmlPreproc add=gotplAction,goTplComment
|
||||
|
||||
let b:current_syntax = "gocsstmpl"
|
||||
|
||||
" vim: sw=2 ts=2 et
|
Loading…
Add table
Add a link
Reference in a new issue