mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 10:56:19 +04:00
Rust: Highlight crate namespace, categorize mut
This commit is contained in:
parent
adcfcf9044
commit
f3a243c6cb
@ -34,6 +34,9 @@
|
|||||||
; Namespaces
|
; Namespaces
|
||||||
|
|
||||||
(crate) @namespace
|
(crate) @namespace
|
||||||
|
(extern_crate_declaration
|
||||||
|
(crate)
|
||||||
|
name: (identifier) @namespace)
|
||||||
(scoped_use_list
|
(scoped_use_list
|
||||||
path: (identifier) @namespace)
|
path: (identifier) @namespace)
|
||||||
(scoped_use_list
|
(scoped_use_list
|
||||||
@ -143,7 +146,7 @@
|
|||||||
"use" @keyword
|
"use" @keyword
|
||||||
"where" @keyword
|
"where" @keyword
|
||||||
"while" @keyword
|
"while" @keyword
|
||||||
(mutable_specifier) @keyword
|
(mutable_specifier) @keyword.mut
|
||||||
(use_list (self) @keyword)
|
(use_list (self) @keyword)
|
||||||
(scoped_use_list (self) @keyword)
|
(scoped_use_list (self) @keyword)
|
||||||
(scoped_identifier (self) @keyword)
|
(scoped_identifier (self) @keyword)
|
||||||
|
Loading…
Reference in New Issue
Block a user