Follow-up of https://github.com/zed-industries/zed/pull/12095#issuecomment-2123230762 reverting back part of https://github.com/zed-industries/zed/pull/11558 that was related to `language.toml` parsing. Now all extensions that define `prettier_parser_name` in their language configs, will enable formatting untitled buffers without any extra language settings like ```json { "languages": { "JSON": { "prettier": { "allowed": true, "parser": "json" } } } } ``` Release Notes: - Improved ergonomics of untitled buffer formatting with prettier, no extra language settings are needed by default.
15 lines
561 B
TOML
15 lines
561 B
TOML
name = "CSS"
|
|
grammar = "css"
|
|
path_suffixes = ["css"]
|
|
autoclose_before = ";:.,=}])>"
|
|
brackets = [
|
|
{ start = "{", end = "}", close = true, newline = true },
|
|
{ start = "[", end = "]", close = true, newline = true },
|
|
{ start = "(", end = ")", close = true, newline = true },
|
|
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["string", "comment"] },
|
|
{ start = "'", end = "'", close = true, newline = false, not_in = ["string", "comment"] },
|
|
]
|
|
word_characters = ["-"]
|
|
block_comment = ["/* ", " */"]
|
|
prettier_parser_name = "css"
|