From 9763f0a6bd0d576236ff126173d7df3462c22a52 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 17 Mar 2021 20:57:30 +0100 Subject: Semantic highlight intradoclinks in documentation --- crates/rust-analyzer/src/semantic_tokens.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crates/rust-analyzer/src/semantic_tokens.rs') diff --git a/crates/rust-analyzer/src/semantic_tokens.rs b/crates/rust-analyzer/src/semantic_tokens.rs index be0bea00b..0cb7d12a7 100644 --- a/crates/rust-analyzer/src/semantic_tokens.rs +++ b/crates/rust-analyzer/src/semantic_tokens.rs @@ -45,15 +45,16 @@ define_semantic_token_types![ (BRACKET, "bracket"), (BUILTIN_TYPE, "builtinType"), (CHAR_LITERAL, "characterLiteral"), - (COMMA, "comma"), (COLON, "colon"), + (COMMA, "comma"), + (CONST_PARAMETER, "constParameter"), (DOT, "dot"), (ESCAPE_SEQUENCE, "escapeSequence"), (FORMAT_SPECIFIER, "formatSpecifier"), (GENERIC, "generic"), - (CONST_PARAMETER, "constParameter"), - (LIFETIME, "lifetime"), + (INTRA_DOC_LINK, "intraDocLink"), (LABEL, "label"), + (LIFETIME, "lifetime"), (PARENTHESIS, "parenthesis"), (PUNCTUATION, "punctuation"), (SELF_KEYWORD, "selfKeyword"), -- cgit v1.2.3