mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
Add rust locals.scm
This commit is contained in:
parent
97ad374816
commit
a027ffbe82
4 changed files with 111 additions and 1 deletions
|
|
@ -23,6 +23,13 @@
|
|||
(alias_declaration
|
||||
name: (type_identifier) @definition.type)
|
||||
|
||||
;; Namespaces
|
||||
(namespace_definition
|
||||
name: (identifier) @definition.namespace
|
||||
body (_) @scope)
|
||||
|
||||
(namespace_identifier) @reference.namespace
|
||||
|
||||
;; Function defintions
|
||||
(template_function
|
||||
name: (identifier) @definition.function) @scope
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue