@@ -400,7 +400,17 @@ config_data! {
400
400
///
401
401
/// When enabled, rust-analyzer will emit special token types for punctuation tokens instead
402
402
/// of the generic `punctuation` token type.
403
- semanticHighlighting_punctuation_specialize: bool = "false" ,
403
+ semanticHighlighting_punctuation_specialization_enable: bool = "false" ,
404
+ /// Use semantic tokens for operators.
405
+ ///
406
+ /// When disabled, rust-analyzer will emit semantic tokens only for operator tokens when
407
+ /// they are tagged with modifiers.
408
+ semanticHighlighting_operator_enable: bool = "true" ,
409
+ /// Use specialized semantic tokens for operators.
410
+ ///
411
+ /// When enabled, rust-analyzer will emit special token types for operator tokens instead
412
+ /// of the generic `operator` token type.
413
+ semanticHighlighting_operator_specialization_enable: bool = "false" ,
404
414
405
415
/// Show full signature of the callable. Only shows parameters if disabled.
406
416
signatureInfo_detail: SignatureDetail = "\" full\" " ,
@@ -538,6 +548,8 @@ pub struct HighlightingConfig {
538
548
pub strings : bool ,
539
549
pub punctuation : bool ,
540
550
pub specialize_punctuation : bool ,
551
+ pub specialize_operator : bool ,
552
+ pub operator : bool ,
541
553
}
542
554
543
555
#[ derive( Debug , Clone ) ]
@@ -1192,7 +1204,11 @@ impl Config {
1192
1204
HighlightingConfig {
1193
1205
strings : self . data . semanticHighlighting_strings_enable ,
1194
1206
punctuation : self . data . semanticHighlighting_punctuation_enable ,
1195
- specialize_punctuation : self . data . semanticHighlighting_punctuation_specialize ,
1207
+ specialize_punctuation : self
1208
+ . data
1209
+ . semanticHighlighting_punctuation_specialization_enable ,
1210
+ operator : self . data . semanticHighlighting_operator_enable ,
1211
+ specialize_operator : self . data . semanticHighlighting_operator_specialization_enable ,
1196
1212
}
1197
1213
}
1198
1214
0 commit comments