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:
parent
71ec781215
commit
cf3b4b0ba7
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
name = "Svelte"
|
name = "Svelte"
|
||||||
path_suffixes = ["svelte"]
|
path_suffixes = ["svelte"]
|
||||||
line_comment = "// "
|
block_comment = ["<!-- ", " -->"]
|
||||||
autoclose_before = ";:.,=}])>"
|
autoclose_before = ";:.,=}])>"
|
||||||
brackets = [
|
brackets = [
|
||||||
{ start = "{", end = "}", close = true, newline = true },
|
{ start = "{", end = "}", close = true, newline = true },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue