nvim-treesitter/queries/php/locals.scm
Shirasaka f372e2ab87 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
2020-08-04 08:05:51 +02:00

22 lines
357 B
Scheme

; 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