mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
46
runtime/queries/puppet/locals.scm
Normal file
46
runtime/queries/puppet/locals.scm
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
; Scopes
|
||||
|
||||
[
|
||||
(block)
|
||||
(defined_resource_type)
|
||||
(parameter_list)
|
||||
(attribute_type_entry)
|
||||
(class_definition)
|
||||
(node_definition)
|
||||
(resource_declaration)
|
||||
(selector)
|
||||
(method_call)
|
||||
(case_statement)
|
||||
(hash)
|
||||
(array)
|
||||
] @scope
|
||||
|
||||
; References
|
||||
|
||||
[
|
||||
(identifier)
|
||||
(class_identifier)
|
||||
(variable)
|
||||
] @reference
|
||||
|
||||
; Definitions
|
||||
|
||||
(attribute [(identifier) (variable)] @definition.field)
|
||||
|
||||
(function_declaration
|
||||
[(identifier) (class_identifier)] @definition.function)
|
||||
|
||||
(include_statement [(identifier) (class_identifier)] @definition.import)
|
||||
|
||||
(parameter (variable) @definition.parameter)
|
||||
|
||||
(class_definition
|
||||
[(identifier) (class_identifier)] @definition.type)
|
||||
|
||||
(node_definition
|
||||
(node_name (identifier) @definition.type))
|
||||
|
||||
(resource_declaration
|
||||
[(identifier) (class_identifier)] @definition.type)
|
||||
|
||||
(assignment . (variable) @definition.var)
|
||||
Loading…
Add table
Add a link
Reference in a new issue