Skip to content

Commit eadc267

Browse files
committed
Regen docs
1 parent f6f0516 commit eadc267

File tree

3 files changed

+98
-22
lines changed

3 files changed

+98
-22
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -385,25 +385,11 @@ config_data! {
385385
/// available on a nightly build.
386386
rustfmt_rangeFormatting_enable: bool = "false",
387387

388-
/// Use semantic tokens for strings.
389-
///
390-
/// In some editors (e.g. vscode) semantic tokens override other highlighting grammars.
391-
/// By disabling semantic tokens for strings, other grammars can be used to highlight
392-
/// their contents.
393-
semanticHighlighting_strings_enable: bool = "true",
394-
/// Use semantic tokens for punctuations.
395-
///
396-
/// When disabled, rust-analyzer will emit semantic tokens only for punctuation tokens when
397-
/// they are tagged with modifiers or have a special role.
398-
semanticHighlighting_punctuation_enable: bool = "false",
399-
/// Use specialized semantic tokens for punctuations.
388+
/// Inject additional highlighting into doc comments.
400389
///
401-
/// When enabled, rust-analyzer will emit special token types for punctuation tokens instead
402-
/// of the generic `punctuation` token type.
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",
390+
/// When enabled, rust-analyzer will highlight rust source in doc comments as well as intra
391+
/// doc links.
392+
semanticHighlighting_doc_comment_inject_enable: bool = "true",
407393
/// Use semantic tokens for operators.
408394
///
409395
/// When disabled, rust-analyzer will emit semantic tokens only for operator tokens when
@@ -414,11 +400,25 @@ config_data! {
414400
/// When enabled, rust-analyzer will emit special token types for operator tokens instead
415401
/// of the generic `operator` token type.
416402
semanticHighlighting_operator_specialization_enable: bool = "false",
417-
/// Inject additional highlighting into doc comments.
403+
/// Use semantic tokens for punctuations.
418404
///
419-
/// When enabled, rust-analyzer will highlight rust source in doc comments as well as intra
420-
/// doc links.
421-
semanticHighlighting_doc_comment_inject_enable: bool = "true",
405+
/// When disabled, rust-analyzer will emit semantic tokens only for punctuation tokens when
406+
/// they are tagged with modifiers or have a special role.
407+
semanticHighlighting_punctuation_enable: bool = "false",
408+
/// When enabled, rust-analyzer will emit a punctuation semantic token for the `!` of macro
409+
/// calls.
410+
semanticHighlighting_punctuation_separate_macro_bang: bool = "false",
411+
/// Use specialized semantic tokens for punctuations.
412+
///
413+
/// When enabled, rust-analyzer will emit special token types for punctuation tokens instead
414+
/// of the generic `punctuation` token type.
415+
semanticHighlighting_punctuation_specialization_enable: bool = "false",
416+
/// Use semantic tokens for strings.
417+
///
418+
/// In some editors (e.g. vscode) semantic tokens override other highlighting grammars.
419+
/// By disabling semantic tokens for strings, other grammars can be used to highlight
420+
/// their contents.
421+
semanticHighlighting_strings_enable: bool = "true",
422422

423423
/// Show full signature of the callable. Only shows parameters if disabled.
424424
signatureInfo_detail: SignatureDetail = "\"full\"",

docs/user/generated_config.adoc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,52 @@ Enables the use of rustfmt's unstable range formatting command for the
587587
`textDocument/rangeFormatting` request. The rustfmt option is unstable and only
588588
available on a nightly build.
589589
--
590+
[[rust-analyzer.semanticHighlighting.doc.comment.inject.enable]]rust-analyzer.semanticHighlighting.doc.comment.inject.enable (default: `true`)::
591+
+
592+
--
593+
Inject additional highlighting into doc comments.
594+
595+
When enabled, rust-analyzer will highlight rust source in doc comments as well as intra
596+
doc links.
597+
--
598+
[[rust-analyzer.semanticHighlighting.operator.enable]]rust-analyzer.semanticHighlighting.operator.enable (default: `true`)::
599+
+
600+
--
601+
Use semantic tokens for operators.
602+
603+
When disabled, rust-analyzer will emit semantic tokens only for operator tokens when
604+
they are tagged with modifiers.
605+
--
606+
[[rust-analyzer.semanticHighlighting.operator.specialization.enable]]rust-analyzer.semanticHighlighting.operator.specialization.enable (default: `false`)::
607+
+
608+
--
609+
Use specialized semantic tokens for operators.
610+
611+
When enabled, rust-analyzer will emit special token types for operator tokens instead
612+
of the generic `operator` token type.
613+
--
614+
[[rust-analyzer.semanticHighlighting.punctuation.enable]]rust-analyzer.semanticHighlighting.punctuation.enable (default: `false`)::
615+
+
616+
--
617+
Use semantic tokens for punctuations.
618+
619+
When disabled, rust-analyzer will emit semantic tokens only for punctuation tokens when
620+
they are tagged with modifiers or have a special role.
621+
--
622+
[[rust-analyzer.semanticHighlighting.punctuation.separate.macro.bang]]rust-analyzer.semanticHighlighting.punctuation.separate.macro.bang (default: `false`)::
623+
+
624+
--
625+
When enabled, rust-analyzer will emit a punctuation semantic token for the `!` of macro
626+
calls.
627+
--
628+
[[rust-analyzer.semanticHighlighting.punctuation.specialization.enable]]rust-analyzer.semanticHighlighting.punctuation.specialization.enable (default: `false`)::
629+
+
630+
--
631+
Use specialized semantic tokens for punctuations.
632+
633+
When enabled, rust-analyzer will emit special token types for punctuation tokens instead
634+
of the generic `punctuation` token type.
635+
--
590636
[[rust-analyzer.semanticHighlighting.strings.enable]]rust-analyzer.semanticHighlighting.strings.enable (default: `true`)::
591637
+
592638
--

editors/code/package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,36 @@
10841084
"default": false,
10851085
"type": "boolean"
10861086
},
1087+
"rust-analyzer.semanticHighlighting.doc.comment.inject.enable": {
1088+
"markdownDescription": "Inject additional highlighting into doc comments.\n\nWhen enabled, rust-analyzer will highlight rust source in doc comments as well as intra\ndoc links.",
1089+
"default": true,
1090+
"type": "boolean"
1091+
},
1092+
"rust-analyzer.semanticHighlighting.operator.enable": {
1093+
"markdownDescription": "Use semantic tokens for operators.\n\nWhen disabled, rust-analyzer will emit semantic tokens only for operator tokens when\nthey are tagged with modifiers.",
1094+
"default": true,
1095+
"type": "boolean"
1096+
},
1097+
"rust-analyzer.semanticHighlighting.operator.specialization.enable": {
1098+
"markdownDescription": "Use specialized semantic tokens for operators.\n\nWhen enabled, rust-analyzer will emit special token types for operator tokens instead\nof the generic `operator` token type.",
1099+
"default": false,
1100+
"type": "boolean"
1101+
},
1102+
"rust-analyzer.semanticHighlighting.punctuation.enable": {
1103+
"markdownDescription": "Use semantic tokens for punctuations.\n\nWhen disabled, rust-analyzer will emit semantic tokens only for punctuation tokens when\nthey are tagged with modifiers or have a special role.",
1104+
"default": false,
1105+
"type": "boolean"
1106+
},
1107+
"rust-analyzer.semanticHighlighting.punctuation.separate.macro.bang": {
1108+
"markdownDescription": "When enabled, rust-analyzer will emit a punctuation semantic token for the `!` of macro\ncalls.",
1109+
"default": false,
1110+
"type": "boolean"
1111+
},
1112+
"rust-analyzer.semanticHighlighting.punctuation.specialization.enable": {
1113+
"markdownDescription": "Use specialized semantic tokens for punctuations.\n\nWhen enabled, rust-analyzer will emit special token types for punctuation tokens instead\nof the generic `punctuation` token type.",
1114+
"default": false,
1115+
"type": "boolean"
1116+
},
10871117
"rust-analyzer.semanticHighlighting.strings.enable": {
10881118
"markdownDescription": "Use semantic tokens for strings.\n\nIn some editors (e.g. vscode) semantic tokens override other highlighting grammars.\nBy disabling semantic tokens for strings, other grammars can be used to highlight\ntheir contents.",
10891119
"default": true,

0 commit comments

Comments
 (0)