Rust: Highlight crate namespace, categorize mut

This commit is contained in:
notoria 2021-06-04 09:43:27 +02:00 committed by Blaž Hrastnik
parent adcfcf9044
commit f3a243c6cb

View file

@ -34,6 +34,9 @@
; Namespaces
(crate) @namespace
(extern_crate_declaration
(crate)
name: (identifier) @namespace)
(scoped_use_list
path: (identifier) @namespace)
(scoped_use_list
@ -143,7 +146,7 @@
"use" @keyword
"where" @keyword
"while" @keyword
(mutable_specifier) @keyword
(mutable_specifier) @keyword.mut
(use_list (self) @keyword)
(scoped_use_list (self) @keyword)
(scoped_identifier (self) @keyword)