mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 20:31:59 +00:00
Add cargo gen-kinds documentation
This commit is contained in:
parent
81bf190f7a
commit
80eefcbc05
7 changed files with 43 additions and 4 deletions
|
|
@ -1,3 +1,6 @@
|
|||
// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run
|
||||
// Do not edit manually
|
||||
|
||||
use {
|
||||
ast,
|
||||
SyntaxNodeRef, AstNode,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
{# THIS File is not automatically generated:
|
||||
the below applies to the result of this template
|
||||
#}// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run
|
||||
// Do not edit manually
|
||||
|
||||
use {
|
||||
ast,
|
||||
SyntaxNodeRef, AstNode,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// Stores definitions which must be used in multiple places
|
||||
// See `cargo gen-kinds` (defined in crates/tools/src/main.rs)
|
||||
Grammar(
|
||||
single_byte_tokens: [
|
||||
[";", "SEMI"],
|
||||
|
|
@ -23,8 +25,9 @@ Grammar(
|
|||
["^", "CARET"],
|
||||
["%", "PERCENT"],
|
||||
],
|
||||
// TODO: Confirm surmision: the tokens which cannot be recorded in a single UTF-8 byte
|
||||
multi_byte_tokens: [
|
||||
[".", "DOT"],
|
||||
[".", "DOT"], // Note: DOT is here because <TODO: REASON>
|
||||
["..", "DOTDOT"],
|
||||
["...", "DOTDOTDOT"],
|
||||
["..=", "DOTDOTEQ"],
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run
|
||||
// Do not edit manually
|
||||
|
||||
#![allow(bad_style, missing_docs, unreachable_pub)]
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
use super::SyntaxInfo;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
{# THIS File is not automatically generated:
|
||||
the below applies to the result of this template
|
||||
#}// This file is automatically generated based on the file `./generated.rs.tera` when `cargo gen-kinds` is run
|
||||
// Do not edit manually
|
||||
|
||||
#![allow(bad_style, missing_docs, unreachable_pub)]
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
use super::SyntaxInfo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue