mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
Add parser `php_only` for PHP files without HTML embedded. Make queries for combined parser `php` inherit from `php_only` (no extensions needed). --------- Co-authored-by: shirasaka <tk.shirasaka@gmail>
16 lines
313 B
Scheme
16 lines
313 B
Scheme
[
|
|
(if_statement)
|
|
(switch_statement)
|
|
(while_statement)
|
|
(do_statement)
|
|
(for_statement)
|
|
(foreach_statement)
|
|
(try_statement)
|
|
(function_definition)
|
|
(class_declaration)
|
|
(interface_declaration)
|
|
(trait_declaration)
|
|
(enum_declaration)
|
|
(function_static_declaration)
|
|
(method_declaration)
|
|
] @fold
|