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 /lua | |
| 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 'lua')
| -rw-r--r-- | lua/nvim-treesitter/parsers.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index d60553206..7a945e11e 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1332,6 +1332,15 @@ list.php = { maintainers = { "@tk-shirasaka" }, } +list.php_only = { + install_info = { + url = "https://github.com/tree-sitter/tree-sitter-php", + location = "php_only", + files = { "src/parser.c", "src/scanner.c" }, + }, + maintainers = { "@tk-shirasaka" }, +} + -- Parsers for injections list.phpdoc = { install_info = { |
