mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -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
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue