@@ -394,13 +394,16 @@ config_data! {
394
394
/// Use semantic tokens for punctuations.
395
395
///
396
396
/// When disabled, rust-analyzer will emit semantic tokens only for punctuation tokens when
397
- /// they are tagged with modifiers.
397
+ /// they are tagged with modifiers or have a special role .
398
398
semanticHighlighting_punctuation_enable: bool = "false" ,
399
399
/// Use specialized semantic tokens for punctuations.
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
403
semanticHighlighting_punctuation_specialization_enable: bool = "false" ,
404
+ /// When enabled, rust-analyzer will emit a punctuation semantic token for the `!` of macro
405
+ /// calls.
406
+ semanticHighlighting_punctuation_separate_macro_bang: bool = "false" ,
404
407
/// Use semantic tokens for operators.
405
408
///
406
409
/// When disabled, rust-analyzer will emit semantic tokens only for operator tokens when
@@ -1203,6 +1206,7 @@ impl Config {
1203
1206
specialize_punctuation : self
1204
1207
. data
1205
1208
. semanticHighlighting_punctuation_specialization_enable ,
1209
+ macro_bang : self . data . semanticHighlighting_punctuation_separate_macro_bang ,
1206
1210
operator : self . data . semanticHighlighting_operator_enable ,
1207
1211
specialize_operator : self . data . semanticHighlighting_operator_specialization_enable ,
1208
1212
inject_doc_comment : self . data . semanticHighlighting_doc_comment_inject_enable ,
0 commit comments