
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.
29 lines
455 B
Scheme
29 lines
455 B
Scheme
(class_declaration
|
|
"class" @context
|
|
name: (name) @name
|
|
) @item
|
|
|
|
(function_definition
|
|
"function" @context
|
|
name: (_) @name
|
|
) @item
|
|
|
|
(method_declaration
|
|
"function" @context
|
|
name: (_) @name
|
|
) @item
|
|
|
|
(interface_declaration
|
|
"interface" @context
|
|
name: (_) @name
|
|
) @item
|
|
|
|
(enum_declaration
|
|
"enum" @context
|
|
name: (_) @name
|
|
) @item
|
|
|
|
(trait_declaration
|
|
"trait" @context
|
|
name: (_) @name
|
|
) @item
|