Add rust locals.scm

This commit is contained in:
Stephan Seitz 2020-07-11 00:10:17 +02:00 committed by Thomas Vigouroux
parent 97ad374816
commit a027ffbe82
4 changed files with 111 additions and 1 deletions

View file

@ -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