diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-16 17:08:03 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-16 17:08:03 +0000 |
commit | 067067a6c11bb5afda98f5af14bfdec4744e7812 (patch) | |
tree | 1c0b6c4c78ee040ebdf818dada804fce311382a6 /xtask/src | |
parent | 63bbdb31e5148c804bbf940963c9c8f3481ad258 (diff) | |
parent | dd496223f50232fe98312ee8edc89eb4b5ee3d85 (diff) |
Merge #6896
6896: Node-ify lifetimes r=jonas-schievink a=Veykril
Let's see if this passes the tests 🤞
Depends on https://github.com/rust-analyzer/ungrammar/pull/15
Co-authored-by: Jonas Schievink <[email protected]>
Co-authored-by: Jonas Schievink <[email protected]>
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/ast_src.rs | 3 | ||||
-rw-r--r-- | xtask/src/codegen/gen_syntax.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 72a4c10f5..a69ced5cc 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs | |||
@@ -76,7 +76,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { | |||
76 | "ERROR", | 76 | "ERROR", |
77 | "IDENT", | 77 | "IDENT", |
78 | "WHITESPACE", | 78 | "WHITESPACE", |
79 | "LIFETIME", | 79 | "LIFETIME_IDENT", |
80 | "COMMENT", | 80 | "COMMENT", |
81 | "SHEBANG", | 81 | "SHEBANG", |
82 | "L_DOLLAR", | 82 | "L_DOLLAR", |
@@ -202,6 +202,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { | |||
202 | "TYPE_PARAM", | 202 | "TYPE_PARAM", |
203 | "CONST_PARAM", | 203 | "CONST_PARAM", |
204 | "GENERIC_ARG_LIST", | 204 | "GENERIC_ARG_LIST", |
205 | "LIFETIME", | ||
205 | "LIFETIME_ARG", | 206 | "LIFETIME_ARG", |
206 | "TYPE_ARG", | 207 | "TYPE_ARG", |
207 | "ASSOC_TYPE_ARG", | 208 | "ASSOC_TYPE_ARG", |
diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs index 44460effa..eb524d85a 100644 --- a/xtask/src/codegen/gen_syntax.rs +++ b/xtask/src/codegen/gen_syntax.rs | |||
@@ -380,7 +380,7 @@ fn generate_syntax_kinds(grammar: KindsSrc<'_>) -> Result<String> { | |||
380 | macro_rules! T { | 380 | macro_rules! T { |
381 | #([#punctuation_values] => { $crate::SyntaxKind::#punctuation };)* | 381 | #([#punctuation_values] => { $crate::SyntaxKind::#punctuation };)* |
382 | #([#all_keywords_idents] => { $crate::SyntaxKind::#all_keywords };)* | 382 | #([#all_keywords_idents] => { $crate::SyntaxKind::#all_keywords };)* |
383 | [lifetime] => { $crate::SyntaxKind::LIFETIME }; | 383 | [lifetime_ident] => { $crate::SyntaxKind::LIFETIME_IDENT }; |
384 | [ident] => { $crate::SyntaxKind::IDENT }; | 384 | [ident] => { $crate::SyntaxKind::IDENT }; |
385 | [shebang] => { $crate::SyntaxKind::SHEBANG }; | 385 | [shebang] => { $crate::SyntaxKind::SHEBANG }; |
386 | } | 386 | } |