Skip to content

Commit 2de4e9f

Browse files
committed
Support svelte multiple expression that ends with ']}'
1 parent d6a65a9 commit 2de4e9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/svelte-html.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ syntax region svelteExpression
3636
\ start="{"
3737
\ end="}\(}\|;\)\@!"
3838

39-
" Multiple lines expressions are supposed to end with '}}' or ')}'
39+
" Multiple lines expressions are supposed to end with '}}', ')}' or ']}'
4040
syntax region svelteExpression
4141
\ containedin=svelteValue,htmlValue,htmlAttr
4242
\ contains=@simpleJavascriptExpression
4343
\ matchgroup=svelteBrace
4444
\ start="{"
45-
\ end="\(}\)\@<=}\|\()\)\@<=}"
45+
\ end="\(}\)\@<=}\|\()\)\@<=}\|\(]\)\@<=}"
4646

4747
syntax region svelteExpression
4848
\ containedin=htmlSvelteTemplate,svelteValue,htmlString,htmlArg,htmlTag,htmlAttr,htmlValue,htmlAttr

0 commit comments

Comments
 (0)