This PR extracts PHP support into an extension and removes the built-in PHP support from Zed. There's a small workaround necessary in order for us to provide the `language_ids` on the `LspAdapter` that are needed for the language server to run properly. Eventually we'll want to build this into the extension API, but for now we're just hard-coding it on the host side. Release Notes: - Removed built-in support for PHP, in favor of making it available as an extension. The PHP extension will be suggested for download when you open a `.php` file.
19 lines
714 B
TOML
19 lines
714 B
TOML
name = "PHP"
|
|
grammar = "php"
|
|
path_suffixes = ["php"]
|
|
first_line_pattern = '^#!.*php'
|
|
line_comments = ["// ", "# "]
|
|
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"] },
|
|
{ start = "'", end = "'", close = true, newline = false, not_in = ["string"] },
|
|
]
|
|
collapsed_placeholder = "/* ... */"
|
|
word_characters = ["$"]
|
|
scope_opt_in_language_servers = ["tailwindcss-language-server"]
|
|
prettier_parser_name = "php"
|
|
prettier_plugins = ["@prettier/plugin-php"]
|