mirror of https://github.com/helix-editor/helix
Update `tree-sitter-rust` (#12607)
Co-authored-by: Rock Boynton <rboynton@anduril.com> Co-authored-by: Michael Davis <mcarsondavis@gmail.com>pull/12407/head
parent
fcf981bbd7
commit
dca235c5c8
|
@ -298,7 +298,7 @@ args = { attachCommands = [ "platform select remote-gdb-server", "platform conne
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "rust"
|
name = "rust"
|
||||||
source = { git = "https://github.com/tree-sitter/tree-sitter-rust", rev = "9c84af007b0f144954adb26b3f336495cbb320a7" }
|
source = { git = "https://github.com/tree-sitter/tree-sitter-rust", rev = "1f63b33efee17e833e0ea29266dd3d713e27e321" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "sway"
|
name = "sway"
|
||||||
|
|
|
@ -174,8 +174,7 @@
|
||||||
|
|
||||||
(for_expression
|
(for_expression
|
||||||
"for" @keyword.control.repeat)
|
"for" @keyword.control.repeat)
|
||||||
((identifier) @keyword.control
|
(gen_block "gen" @keyword.control)
|
||||||
(#match? @keyword.control "^yield$"))
|
|
||||||
|
|
||||||
"in" @keyword.control
|
"in" @keyword.control
|
||||||
|
|
||||||
|
@ -196,6 +195,7 @@
|
||||||
"continue"
|
"continue"
|
||||||
"return"
|
"return"
|
||||||
"await"
|
"await"
|
||||||
|
"yield"
|
||||||
] @keyword.control.return
|
] @keyword.control.return
|
||||||
|
|
||||||
"use" @keyword.control.import
|
"use" @keyword.control.import
|
||||||
|
@ -204,6 +204,10 @@
|
||||||
|
|
||||||
(type_cast_expression "as" @keyword.operator)
|
(type_cast_expression "as" @keyword.operator)
|
||||||
|
|
||||||
|
((generic_type
|
||||||
|
type: (type_identifier) @keyword)
|
||||||
|
(#eq? @keyword "use"))
|
||||||
|
|
||||||
[
|
[
|
||||||
(crate)
|
(crate)
|
||||||
(super)
|
(super)
|
||||||
|
@ -241,6 +245,7 @@
|
||||||
[
|
[
|
||||||
"static"
|
"static"
|
||||||
"const"
|
"const"
|
||||||
|
"raw"
|
||||||
"ref"
|
"ref"
|
||||||
"move"
|
"move"
|
||||||
"dyn"
|
"dyn"
|
||||||
|
|
Loading…
Reference in New Issue