1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:10:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/fusion/locals.scm
2022-04-14 12:01:23 +08:00

22 lines
415 B
Scheme
Vendored

;; 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_property_name) @definition.field)