Skip to content

Commit 86ba493

Browse files
committed
Fixes rust queries to accomodate breaking changes in rust parser
See tree-sitter/tree-sitter-rust#255
1 parent 7a1486e commit 86ba493

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

after/queries/rust/highlights.scm

+2-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@
2121
type: (reference_type
2222
(mutable_specifier)))
2323

24-
(type_parameters
25-
(type_identifier) @type.parameter)
26-
27-
(constrained_type_parameter
28-
left: (type_identifier) @type.parameter)
24+
(type_parameter
25+
name: (type_identifier) @type.parameter)
2926

3027
(type_arguments
3128
(type_identifier) @type.parameter)

lua/jb/palette.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -2708,10 +2708,12 @@
27082708
"Const parameter": null,
27092709
"Lifetime": {
27102710
"light": {
2711-
"fg": "#20999D"
2711+
"fg": "#20999D",
2712+
"italic": true
27122713
},
27132714
"dark": {
2714-
"fg": "#20999D"
2715+
"fg": "#20999D",
2716+
"italic": true
27152717
}
27162718
},
27172719
"Mutable parameter": null,
@@ -3851,7 +3853,8 @@
38513853
"@type.parameter_lifetime.rust": "Rust|Parameters|Lifetime",
38523854
"@type.parameter.rust": "Rust|Parameters|TypeParameter",
38533855
"@unsafe.rust": "Rust|UnsafeCode",
3854-
"@variable.mutable_static.rust": "Rust|Variables|MutableStatic"
3856+
"@variable.mutable_static.rust": "Rust|Variables|MutableStatic",
3857+
"@label.rust": null
38553858
},
38563859
"Plugin.petertriho/nvim-scrollbar": {
38573860
"ScrollbarHandle": "General|Editor|VerticalScrollbar|Thumb",

0 commit comments

Comments
 (0)