Skip to content

Commit 40707c4

Browse files
authored
(fix) syntax highlighting inside template
This change means that there needs to be a whitespace between the `>` and the start of the template contents, but that should be the case 99%. If someone comes up with a better solution, we are happy to accept a PR. #694
1 parent 39ae400 commit 40707c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ injections:
8282

8383
# Default (just introduces a new scope)
8484
'L:meta.template.svelte - meta.lang - (meta source)':
85-
patterns: [{begin: '(?<=>)(?!</)', end: '(?=</)', patterns: [{ include: '#scope' }]}]
85+
patterns: [{begin: '(?<=>)\s', end: '(?=</)', patterns: [{ include: '#scope' }]}]
8686

8787
# ---- LANGUAGE EXTENSIONS
8888

0 commit comments

Comments
 (0)