Commit graph

15 commits

Author SHA1 Message Date
Phạm Huy Hoàng
62b0bb4f24 feat(format): extra newline after modeline 2024-02-29 23:05:30 +09:00
tk-shirasaka
64b3d5e569
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>
2024-01-20 12:34:49 +00:00
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
Christian Clason
800b2f388b fixup: php injections 2023-08-12 17:45:44 +02:00
ObserverOfTime
d8e625df2d fix(php): heredocs injections & highlights 2023-08-12 17:34:15 +02:00
CalebW
246f4cc20c Add PHP heredoc and nowdoc injections (#4866) 2023-08-12 17:34:15 +02:00
Pham Huy Hoang
78b54eb7f6 chore(injections)!: update injection syntax to 0.9
Since 0.9, @lang syntax is still available as fallback but will soon be deprecated.
Because of that, new syntax should be adopted once 0.9 becomes the
baseline requirements for nvim-treesitter

- update health check
- update doc
2023-08-12 17:34:15 +02:00
Pham Huy Hoang
f7e8b7420c fix(php_inject): add missing @combined to text 2023-04-14 13:23:37 -04:00
gbprod
287ffdccc1
Add regex injections for php (#3592) 2022-10-28 12:22:16 +00:00
gbprod
82767f3f33 feat(php): add queries for bash injections
This commit allows to inject bash syntax into relevant function arguments
and shell expression.
2022-10-12 22:38:03 +02:00
Michael Härtl
d7c4ae886d parsers: add phpdoc parser (experimental) 2022-01-20 15:37:44 +01:00
Santos Gallegos
67f0857015 Revert "Comment: use @combined to create just one tree per buffer (#1252)"
This reverts commit 4a7a713c52.
2021-05-07 16:51:57 +02:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer (#1252)
* Comment: use `@combined` to create just one tree per buffer

There is no need to create a tree per line/block for comments.
Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251

* Add injections for scss

* Fix jsonc

* Combine jsdoc
2021-04-28 07:19:07 -05:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags (#893)
Closes #236
2021-03-12 11:21:46 -05:00
shirasaka
1b7cfc1b71 Add injections to PHP 2020-11-24 08:03:16 +01:00