Fix: Comment shortcut in Svelte files now respects if the line(s) are HTML vs JS/TS (#5860)

Release Notes:

- Fixed: When using the comment shortcut, previously HTML or JS/TS would
all prefix lines with `// `. This PR brings the comments inline with
what is expected (`// ` for JS/TS, `<!-- ... -->` for HTML). Fixes
[#4578](https://github.com/zed-industries/zed/issues/4578).
This commit is contained in:
Chase Weaver 2024-01-24 15:24:49 -05:00 committed by GitHub
parent 71ec781215
commit cf3b4b0ba7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
name = "Svelte"
path_suffixes = ["svelte"]
line_comment = "// "
block_comment = ["<!-- ", " -->"]
autoclose_before = ";:.,=}])>"
brackets = [
{ start = "{", end = "}", close = true, newline = true },