aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2020-12-15 18:23:51 +0000
committerLukas Wirth <[email protected]>2020-12-16 13:16:09 +0000
commitdd496223f50232fe98312ee8edc89eb4b5ee3d85 (patch)
tree4d50c04ca78f9458ab536ff1edee76eba6ab1957 /xtask
parentd34611633b3b2404188b9e12b08c5def589808c2 (diff)
Node-ify lifetimes
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 }