diff options
author | Aleksey Kladov <[email protected]> | 2018-02-04 14:06:43 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-02-04 14:06:43 +0000 |
commit | 351107d0b143e2c3497bd0f424f0d76bc51df0c0 (patch) | |
tree | a7759795877d2d5fef25915997c2679af0cd3e94 /tools | |
parent | c119e8fd8b0106bb2e031e76ac1be89bd10a0674 (diff) |
Reformat
Diffstat (limited to 'tools')
-rw-r--r-- | tools/src/bin/gen.rs | 4 |
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()) |