mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 04:23:51 -05:00
Run a build and commit the results
This commit is contained in:
@@ -40,13 +40,13 @@ syntax region svelteExpression
|
||||
\ start="{"
|
||||
\ end="}\(}\|;\)\@!"
|
||||
|
||||
" Multiple lines expressions are supposed to end with '}}'
|
||||
" Multiple lines expressions are supposed to end with '}}' or ')}'
|
||||
syntax region svelteExpression
|
||||
\ containedin=svelteValue,htmlValue,htmlAttr
|
||||
\ contains=@simpleJavascriptExpression
|
||||
\ matchgroup=svelteBrace
|
||||
\ start="{"
|
||||
\ end="\(}\)\@<=}"
|
||||
\ end="\(}\)\@<=}\|\()\)\@<=}"
|
||||
|
||||
syntax region svelteExpression
|
||||
\ containedin=htmlSvelteTemplate,svelteValue,htmlString,htmlArg,htmlTag,htmlAttr,htmlValue,htmlAttr
|
||||
@@ -81,8 +81,7 @@ syntax region svelteBlockEnd
|
||||
|
||||
syntax keyword svelteBlockKeyword if else each await then catch as
|
||||
|
||||
syntax cluster simpleJavascriptExpression
|
||||
\ contains=javaScriptStringS,javaScriptStringD,javaScriptTemplateString,javascriptNumber,javaScriptOperator
|
||||
syntax cluster simpleJavascriptExpression contains=\CjavaScript.*
|
||||
|
||||
" Redefine JavaScript syntax
|
||||
syntax region javaScriptStringS
|
||||
@@ -96,13 +95,6 @@ syntax region javaScriptTemplateExpression
|
||||
\ matchgroup=Type
|
||||
\ start=+${+ end=+}+ keepend contained
|
||||
|
||||
syntax match javaScriptNumber '\v<-?\d+L?>|0[xX][0-9a-fA-F]+>' contained
|
||||
syntax match javaScriptOperator '[-!|&+<>=%*~^]' contained
|
||||
syntax match javaScriptOperator '\v(*)@<!/(/|*)@!' contained
|
||||
syntax keyword javaScriptOperator contained
|
||||
\ delete instanceof typeof void new in of const let var
|
||||
\ return function
|
||||
|
||||
highlight default link svelteAttr htmlTag
|
||||
if s:highlight_svelte_attr
|
||||
highlight default link svelteKey Type
|
||||
|
||||
Reference in New Issue
Block a user