Skip to content

Commit

Permalink
(fix) template highlighting (#814)
Browse files Browse the repository at this point in the history
Match `</template` specifically so it does not end prematurely on inner closing tags
#694
  • Loading branch information
dummdidumm committed Feb 10, 2021
1 parent 8cf6c00 commit 9ed0a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ injections:

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

# ---- LANGUAGE EXTENSIONS

Expand Down

0 comments on commit 9ed0a50

Please sign in to comment.