mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
feat: add the php_only parser included in tree-sitter-php (#5876)
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>
This commit is contained in:
parent
a8fa3047b5
commit
64b3d5e569
13 changed files with 574 additions and 557 deletions
|
|
@ -1,16 +1 @@
|
|||
[
|
||||
(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
|
||||
; inherits: php_only
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue