From 41510f437e87e013f2015bed1a964163c6d3f1ff Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 17 May 2021 18:37:06 +0300 Subject: minor: adjust config name --- docs/dev/style.md | 9 +++++---- docs/user/generated_config.adoc | 18 +++++++++--------- 2 files changed, 14 insertions(+), 13 deletions(-) (limited to 'docs') diff --git a/docs/dev/style.md b/docs/dev/style.md index f22b69768..96dd684b3 100644 --- a/docs/dev/style.md +++ b/docs/dev/style.md @@ -791,13 +791,14 @@ Many names in rust-analyzer conflict with keywords. We use mangled names instead of `r#ident` syntax: ``` -struct -> strukt crate -> krate -impl -> imp -trait -> trait_ -fn -> func enum -> enum_ +fn -> func +impl -> imp mod -> module +struct -> strukt +trait -> trait_ +type -> ty ``` **Rationale:** consistency. diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index e2d74e164..feba43ff1 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -179,6 +179,15 @@ Controls file watching implementation. -- These directories will be ignored by rust-analyzer. -- +[[rust-analyzer.highlighting.strings]]rust-analyzer.highlighting.strings (default: `true`):: ++ +-- +Use semantic tokens for strings. + +In some editors (e.g. vscode) semantic tokens override other highlighting grammars. +By disabling semantic tokens for strings, other grammars can be used to highlight +their contents. +-- [[rust-analyzer.hoverActions.debug]]rust-analyzer.hoverActions.debug (default: `true`):: + -- @@ -332,12 +341,3 @@ Additional arguments to `rustfmt`. Advanced option, fully override the command rust-analyzer uses for formatting. -- -[[rust-analyzer.semanticStringTokens]]rust-analyzer.semanticStringTokens (default: `true`):: -+ --- -Use semantic tokens for strings. - -In some editors (e.g. vscode) semantic tokens override other highlighting grammars. -By disabling semantic tokens for strings, other grammars can be used to highlight -their contents. --- -- cgit v1.2.3