mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
rust: use @type.qualifier and @storageclass
This commit is contained in:
parent
00add7e4b4
commit
00b42ac6d4
2 changed files with 21 additions and 13 deletions
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
(self) @variable.builtin
|
||||
|
||||
(lifetime ["'" (identifier)] @label)
|
||||
(loop_label ["'" (identifier)] @label)
|
||||
|
||||
|
||||
|
|
@ -172,7 +171,6 @@
|
|||
[
|
||||
"async"
|
||||
"await"
|
||||
"const"
|
||||
"default"
|
||||
"dyn"
|
||||
"enum"
|
||||
|
|
@ -182,17 +180,26 @@
|
|||
"match"
|
||||
"move"
|
||||
"pub"
|
||||
"ref"
|
||||
"static"
|
||||
"struct"
|
||||
"trait"
|
||||
"type"
|
||||
"union"
|
||||
"unsafe"
|
||||
"where"
|
||||
(mutable_specifier)
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"ref"
|
||||
(mutable_specifier)
|
||||
] @type.qualifier
|
||||
|
||||
[
|
||||
"const"
|
||||
"static"
|
||||
] @storageclass
|
||||
|
||||
(lifetime ["'" (identifier)] @storageclass.lifetime)
|
||||
|
||||
"fn" @keyword.function
|
||||
[
|
||||
"return"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue