aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-12-16 17:08:03 +0000
committerGitHub <[email protected]>2020-12-16 17:08:03 +0000
commit067067a6c11bb5afda98f5af14bfdec4744e7812 (patch)
tree1c0b6c4c78ee040ebdf818dada804fce311382a6 /xtask
parent63bbdb31e5148c804bbf940963c9c8f3481ad258 (diff)
parentdd496223f50232fe98312ee8edc89eb4b5ee3d85 (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')
-rw-r--r--xtask/Cargo.toml4
-rw-r--r--xtask/src/ast_src.rs3
-rw-r--r--xtask/src/codegen/gen_syntax.rs2
3 files changed, 5 insertions, 4 deletions
diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml
index 2ef956485..78a0b54ba 100644
--- a/xtask/Cargo.toml
+++ b/xtask/Cargo.toml
@@ -15,8 +15,8 @@ flate2 = "1.0"
15pico-args = "0.3.1" 15pico-args = "0.3.1"
16proc-macro2 = "1.0.8" 16proc-macro2 = "1.0.8"
17quote = "1.0.2" 17quote = "1.0.2"
18ungrammar = "1.1.3" 18ungrammar = "1.4"
19walkdir = "2.3.1" 19walkdir = "2.3.1"
20write-json = "0.1.0" 20write-json = "0.1.0"
21xshell = "0.1" 21xshell = "0.1"
22# Avoid adding more dependencies to this crate 22# Avoid adding more dependencies to this crate
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 }