File tree 1 file changed +3
-5
lines changed
packages/svelte-vscode/syntaxes
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -431,21 +431,19 @@ repository:
431
431
tags-start-attributes :
432
432
begin : \G
433
433
end : (?=/?>)
434
- endCaptures : { 0: { name: punctuation.definition.tag.end.svelte } }
435
434
name : meta.tag.start.svelte
436
435
patterns : [ include: '#attributes' ]
437
436
438
437
# Same as tags-start-attributes but slightly adjusted for special script/style/template tags.
439
438
tags-lang-start-attributes :
440
439
begin : \G
441
440
end : (?=/>)|>
442
- endCaptures : { 0: { name: punctuation.definition.tag.end.svelte } }
443
441
name : meta.tag.start.svelte
444
442
patterns : [ include: '#attributes' ]
445
443
446
444
# Matches the beginning (`<name`) section of a tag start node.
447
445
tags-start-node :
448
- match : (<)([^/\s>]*)
446
+ match : (<)([^/\s>/ ]*)
449
447
captures :
450
448
1 : { name: punctuation.definition.tag.begin.svelte }
451
449
2 : { patterns: [ include: '#tags-name' ] }
@@ -496,8 +494,8 @@ repository:
496
494
# Split up into start and end because we don't need to preserve the name
497
495
# inside and because it makes whitespace matching logic more robust
498
496
tags-general-start :
499
- begin : (<)([^/\s>]*)
500
- end : (>)
497
+ begin : (<)([^/\s>/ ]*)
498
+ end : (/? >)
501
499
beginCaptures : { 0: { patterns: [ include: '#tags-start-node' ] } }
502
500
endCaptures :
503
501
1 : { name: meta.tag.start.svelte punctuation.definition.tag.end.svelte }
You can’t perform that action at this time.
0 commit comments