File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,10 @@ syntax region svelteBlockEnd
77
77
78
78
syntax keyword svelteBlockKeyword if else each await then catch as
79
79
80
- syntax cluster simpleJavascriptExpression contains =\CjavaScript.*
80
+ syntax cluster simpleJavascriptExpression
81
+ \c ontains= \C javaScript.*
82
+ silent ! syntax cluster simpleJavascriptExpression
83
+ \c ontains= @t ypescriptExpression,typescriptProp
81
84
82
85
" Redefine JavaScript syntax
83
86
syntax region javaScriptStringS
Original file line number Diff line number Diff line change @@ -77,9 +77,6 @@ endfunction
77
77
" syntax. It defines group htmlJavaScript and htmlCss.
78
78
call s: LoadSyntax (' @HTMLSyntax' , ' html' )
79
79
80
- " Load svelte-html syntax
81
- syntax include syntax /svelte- html.vim
82
-
83
80
" Avoid overload
84
81
if ! hlexists (' cssTagName' )
85
82
call s: LoadSyntax (' @htmlCss' , ' css' )
@@ -125,6 +122,14 @@ if s:use_typescript
125
122
endif
126
123
" }}}
127
124
125
+ " """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
126
+ "
127
+ " Load Svelte specific html syntax {{{
128
+ "
129
+ " """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
130
+ syntax include syntax /svelte- html.vim
131
+ " }}}
132
+
128
133
" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
129
134
"
130
135
" Syntax highlight {{{
You can’t perform that action at this time.
0 commit comments