forked from statico/vim-javascript-sql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsql.vim
More file actions
22 lines (17 loc) · 698 Bytes
/
sql.vim
File metadata and controls
22 lines (17 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
" Vim plugin
" Language: JavaScript
" Maintainer: alxndrsn
if exists('b:current_syntax')
let s:current_syntax = b:current_syntax
unlet b:current_syntax
endif
exec 'syntax include @CSSSyntax syntax/css.vim'
if exists('s:current_syntax')
let b:current_syntax = s:current_syntax
endif
syntax region cssTemplateString start=+`+ skip=+\\\(`\|$\)+ end=+`+ contains=@CSSSyntax,jsTemplateExpression,jsSpecial extend
exec 'syntax match cssTaggedTemplate +\%(CSS\)\%(`\)\@=+ nextgroup=cssTemplateString'
hi def link cssTemplateString jsTemplateString
hi def link cssTaggedTemplate jsTaggedTemplate
syn cluster jsExpression add=cssTaggedTemplate
syn cluster cssTaggedTemplate add=cssTemplateString