mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
Update semantic token docs
This commit is contained in:
parent
e4f2d0e3a8
commit
3472105ad9
2 changed files with 14 additions and 2 deletions
|
@ -57,9 +57,11 @@ pub struct HlRange {
|
||||||
// - For items:
|
// - For items:
|
||||||
// +
|
// +
|
||||||
// [horizontal]
|
// [horizontal]
|
||||||
|
// attribute:: Emitted for attribute macros.
|
||||||
// enum:: Emitted for enums.
|
// enum:: Emitted for enums.
|
||||||
// function:: Emitted for free-standing functions.
|
// function:: Emitted for free-standing functions.
|
||||||
// macro:: Emitted for macros.
|
// derive:: Emitted for derive macros.
|
||||||
|
// macro:: Emitted for function-like macros.
|
||||||
// method:: Emitted for associated functions, also knowns as methods.
|
// method:: Emitted for associated functions, also knowns as methods.
|
||||||
// namespace:: Emitted for modules.
|
// namespace:: Emitted for modules.
|
||||||
// struct:: Emitted for structs.
|
// struct:: Emitted for structs.
|
||||||
|
@ -90,6 +92,7 @@ pub struct HlRange {
|
||||||
// +
|
// +
|
||||||
// [horizontal]
|
// [horizontal]
|
||||||
// punctuation:: Emitted for general punctuation.
|
// punctuation:: Emitted for general punctuation.
|
||||||
|
// attributeBracket:: Emitted for attribute invocation brackets, that is the `#[` and `]` tokens.
|
||||||
// angle:: Emitted for `<>` angle brackets.
|
// angle:: Emitted for `<>` angle brackets.
|
||||||
// brace:: Emitted for `{}` braces.
|
// brace:: Emitted for `{}` braces.
|
||||||
// bracket:: Emitted for `[]` brackets.
|
// bracket:: Emitted for `[]` brackets.
|
||||||
|
@ -102,7 +105,6 @@ pub struct HlRange {
|
||||||
// //-
|
// //-
|
||||||
//
|
//
|
||||||
// [horizontal]
|
// [horizontal]
|
||||||
// attribute:: Emitted for the `#[` `]` tokens.
|
|
||||||
// builtinAttribute:: Emitted for names to builtin attributes in attribute path, the `repr` in `#[repr(u8)]` for example.
|
// builtinAttribute:: Emitted for names to builtin attributes in attribute path, the `repr` in `#[repr(u8)]` for example.
|
||||||
// builtinType:: Emitted for builtin types like `u32`, `str` and `f32`.
|
// builtinType:: Emitted for builtin types like `u32`, `str` and `f32`.
|
||||||
// comment:: Emitted for comments.
|
// comment:: Emitted for comments.
|
||||||
|
|
|
@ -1126,6 +1126,11 @@
|
||||||
"id": "attribute",
|
"id": "attribute",
|
||||||
"description": "Style for attributes"
|
"description": "Style for attributes"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "attributeBracket",
|
||||||
|
"description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
|
||||||
|
"superType": "punctuation"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "bitwise",
|
"id": "bitwise",
|
||||||
"description": "Style for bitwise operators",
|
"description": "Style for bitwise operators",
|
||||||
|
@ -1180,6 +1185,11 @@
|
||||||
"id": "constParameter",
|
"id": "constParameter",
|
||||||
"description": "Style for const generics"
|
"description": "Style for const generics"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "derive",
|
||||||
|
"description": "Style for derives",
|
||||||
|
"superType": "attribute"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "dot",
|
"id": "dot",
|
||||||
"description": "Style for .",
|
"description": "Style for .",
|
||||||
|
|
Loading…
Reference in a new issue