diff options
| author | tk-shirasaka <tk.shirasaka@gmail.com> | 2024-01-20 21:34:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-20 12:34:49 +0000 |
| commit | 64b3d5e5698d485a4f197ffbe85a4b6c29e16325 (patch) | |
| tree | df6723ec690b4b4dad98cdcbffaa99c3a66b4587 /queries/php_only/folds.scm | |
| parent | fix(highlights): use `markup.raw.delimiter` for fences (diff) | |
| download | nvim-treesitter-64b3d5e5698d485a4f197ffbe85a4b6c29e16325.tar nvim-treesitter-64b3d5e5698d485a4f197ffbe85a4b6c29e16325.tar.gz nvim-treesitter-64b3d5e5698d485a4f197ffbe85a4b6c29e16325.tar.bz2 nvim-treesitter-64b3d5e5698d485a4f197ffbe85a4b6c29e16325.tar.lz nvim-treesitter-64b3d5e5698d485a4f197ffbe85a4b6c29e16325.tar.xz nvim-treesitter-64b3d5e5698d485a4f197ffbe85a4b6c29e16325.tar.zst nvim-treesitter-64b3d5e5698d485a4f197ffbe85a4b6c29e16325.zip | |
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>
Diffstat (limited to 'queries/php_only/folds.scm')
| -rw-r--r-- | queries/php_only/folds.scm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/queries/php_only/folds.scm b/queries/php_only/folds.scm new file mode 100644 index 000000000..56eb33e77 --- /dev/null +++ b/queries/php_only/folds.scm @@ -0,0 +1,16 @@ +[ + (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 |
