mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -04:00
Add PHP, TOML, and update HTML, javascript queries
- PHP : Add highlights and locals query - TOML : Add highlights and locals query - HTML : Add scope - javascript : Add some scopes
This commit is contained in:
parent
a0abaf936c
commit
f372e2ab87
7 changed files with 233 additions and 2 deletions
22
queries/php/locals.scm
Normal file
22
queries/php/locals.scm
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
; Scopes
|
||||
;-------
|
||||
|
||||
(class_declaration) @scope
|
||||
(property_declaration) @scope
|
||||
(method_declaration) @scope
|
||||
(function_definition) @scope
|
||||
(while_statement) @scope
|
||||
(foreach_statement) @scope
|
||||
(if_statement) @scope
|
||||
(try_statement) @scope
|
||||
|
||||
; Definitions
|
||||
;------------
|
||||
|
||||
(variable_name
|
||||
(name) @definition.var)
|
||||
|
||||
; References
|
||||
;------------
|
||||
|
||||
(variable_name) @reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue