mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 07:20:06 -04:00
feat: add more local definitions
This commit is contained in:
parent
17403ce019
commit
88505b7312
1 changed files with 18 additions and 0 deletions
|
|
@ -1,3 +1,21 @@
|
|||
;; Fusion base
|
||||
(block) @scope
|
||||
|
||||
(namespace_declaration
|
||||
(alias_namespace) @definition.namespace)
|
||||
|
||||
(property
|
||||
(path (path_part) @definition.field))
|
||||
|
||||
(type
|
||||
namespace: (package_name)? @definition.namespace
|
||||
name: (type_name) @definition.type
|
||||
)
|
||||
|
||||
;; Eel Expressions
|
||||
(eel_arrow_function) @scope
|
||||
(eel_object) @scope
|
||||
|
||||
(eel_parameter) @definition.parameter
|
||||
(eel_object_pair
|
||||
key: (eel_propery_name) @definition.field)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue