(ANGLE, "angle"),
(ARITHMETIC, "arithmetic"),
(ATTRIBUTE, "attribute"),
+ (ATTRIBUTE_BRACKET, "attributeBracket"),
(BITWISE, "bitwise"),
(BOOLEAN, "boolean"),
(BRACE, "brace"),
(COMMA, "comma"),
(COMPARISON, "comparison"),
(CONST_PARAMETER, "constParameter"),
+ (DERIVE, "derive"),
(DOT, "dot"),
(ESCAPE_SEQUENCE, "escapeSequence"),
(FORMAT_SPECIFIER, "formatSpecifier"),
(LABEL, "label"),
(LIFETIME, "lifetime"),
(LOGICAL, "logical"),
+ (MACRO_BANG, "macroBang"),
(OPERATOR, "operator"),
(PARENTHESIS, "parenthesis"),
(PUNCTUATION, "punctuation"),
(SELF_KEYWORD, "selfKeyword"),
(SEMICOLON, "semicolon"),
(TYPE_ALIAS, "typeAlias"),
+ (TOOL_MODULE, "toolModule"),
(UNION, "union"),
(UNRESOLVED_REFERENCE, "unresolvedReference"),
];
SemanticTokenModifier::ABSTRACT,
SemanticTokenModifier::DEPRECATED,
SemanticTokenModifier::READONLY,
+ SemanticTokenModifier::DEFAULT_LIBRARY,
$($ident),*
];
};
}
define_semantic_token_modifiers![
+ (ASYNC, "async"),
+ (ATTRIBUTE_MODIFIER, "attribute"),
+ (CALLABLE, "callable"),
(CONSTANT, "constant"),
+ (CONSUMING, "consuming"),
(CONTROL_FLOW, "controlFlow"),
+ (CRATE_ROOT, "crateRoot"),
(INJECTED, "injected"),
- (MUTABLE, "mutable"),
- (CONSUMING, "consuming"),
- (ASYNC, "async"),
+ (INTRA_DOC_LINK, "intraDocLink"),
(LIBRARY, "library"),
+ (MUTABLE, "mutable"),
(PUBLIC, "public"),
- (UNSAFE, "unsafe"),
- (ATTRIBUTE_MODIFIER, "attribute"),
- (TRAIT_MODIFIER, "trait"),
- (CALLABLE, "callable"),
- (INTRA_DOC_LINK, "intraDocLink"),
(REFERENCE, "reference"),
+ (TRAIT_MODIFIER, "trait"),
+ (UNSAFE, "unsafe"),
];
#[derive(Default)]