Skip to content

Commit 6757cd8

Browse files
committed
Fix syntax bug after closing tag '/>'
1 parent 671932d commit 6757cd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

syntax/svelte.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ syntax region htmlSvelteTemplate fold
139139
" Start tag across multiple lines or Empty tag across multiple lines
140140
syntax region htmlSvelteTemplate fold
141141
\ start=+<[-:a-zA-Z0-9]\+[^>]*$+
142-
\ end=+^\(<\/[-:a-zA-Z0-9]\+>\)\|^\([^<]*\/>\)+
142+
\ end=+^\(<\/[-:a-zA-Z0-9]\+>\|\(\S[^<]*\)\?\/>\)+
143143
\ keepend contains=@HTMLSyntax
144+
144145
" Tag in one line
145146
syntax match htmlSvelteTemplate fold
146147
\ +<[-:a-zA-Z0-9]\+[^>]*>.*</[-:a-zA-Z0-9]\+>+

0 commit comments

Comments
 (0)