aboutsummaryrefslogtreecommitdiff
path: root/tools/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'tools/src/bin')
-rw-r--r--tools/src/bin/gen.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/src/bin/gen.rs b/tools/src/bin/gen.rs
index c71e6da73..7cb164316 100644
--- a/tools/src/bin/gen.rs
+++ b/tools/src/bin/gen.rs
@@ -39,7 +39,9 @@ impl Grammar {
39 acc.push_str("use tree::SyntaxInfo;\n"); 39 acc.push_str("use tree::SyntaxInfo;\n");
40 acc.push_str("\n"); 40 acc.push_str("\n");
41 41
42 let syntax_kinds: Vec<String> =self.tokens.iter().cloned() 42 let syntax_kinds: Vec<String> = self.tokens
43 .iter()
44 .cloned()
43 .chain(self.keywords.iter().map(|kw| kw_token(kw))) 45 .chain(self.keywords.iter().map(|kw| kw_token(kw)))
44 .chain(self.contextual_keywords.iter().map(|kw| kw_token(kw))) 46 .chain(self.contextual_keywords.iter().map(|kw| kw_token(kw)))
45 .chain(self.nodes.iter().cloned()) 47 .chain(self.nodes.iter().cloned())