mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Update semantic token docs
This commit is contained in:
parent
e4f2d0e3a8
commit
3472105ad9
@ -57,9 +57,11 @@ pub struct HlRange {
|
||||
// - For items:
|
||||
// +
|
||||
// [horizontal]
|
||||
// attribute:: Emitted for attribute macros.
|
||||
// enum:: Emitted for enums.
|
||||
// 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.
|
||||
// namespace:: Emitted for modules.
|
||||
// struct:: Emitted for structs.
|
||||
@ -90,6 +92,7 @@ pub struct HlRange {
|
||||
// +
|
||||
// [horizontal]
|
||||
// punctuation:: Emitted for general punctuation.
|
||||
// attributeBracket:: Emitted for attribute invocation brackets, that is the `#[` and `]` tokens.
|
||||
// angle:: Emitted for `<>` angle brackets.
|
||||
// brace:: Emitted for `{}` braces.
|
||||
// bracket:: Emitted for `[]` brackets.
|
||||
@ -102,7 +105,6 @@ pub struct HlRange {
|
||||
// //-
|
||||
//
|
||||
// [horizontal]
|
||||
// attribute:: Emitted for the `#[` `]` tokens.
|
||||
// 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`.
|
||||
// comment:: Emitted for comments.
|
||||
|
@ -1126,6 +1126,11 @@
|
||||
"id": "attribute",
|
||||
"description": "Style for attributes"
|
||||
},
|
||||
{
|
||||
"id": "attributeBracket",
|
||||
"description": "Style for attribute invocation brackets, that is the `#[` and `]` tokens",
|
||||
"superType": "punctuation"
|
||||
},
|
||||
{
|
||||
"id": "bitwise",
|
||||
"description": "Style for bitwise operators",
|
||||
@ -1180,6 +1185,11 @@
|
||||
"id": "constParameter",
|
||||
"description": "Style for const generics"
|
||||
},
|
||||
{
|
||||
"id": "derive",
|
||||
"description": "Style for derives",
|
||||
"superType": "attribute"
|
||||
},
|
||||
{
|
||||
"id": "dot",
|
||||
"description": "Style for .",
|
||||
|
Loading…
Reference in New Issue
Block a user