aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-01-28 09:36:12 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-01-28 09:36:12 +0000
commiteafb9c3ab4fa53697c5ce4e595b26e91c5d79126 (patch)
treea8dbeb99a88011d9ffd504660ad0f28ada341c96 /src
parentfde9d3ca43d57f78e3df02d7fe9bcf0e08c9c117 (diff)
parent14c0ee90cae44b7b0d807723768dc6bd73c64ba3 (diff)
Merge #21
21: Apply #20 to generating code r=CAD97 a=CAD97
Diffstat (limited to 'src')
-rw-r--r--src/bin/gen.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bin/gen.rs b/src/bin/gen.rs
index 89609bd77..e32f5044e 100644
--- a/src/bin/gen.rs
+++ b/src/bin/gen.rs
@@ -45,7 +45,6 @@ impl Grammar {
45 // enum SyntaxKind 45 // enum SyntaxKind
46 acc.push_str("/// The kind of syntax node, e.g. `IDENT`, `USE_KW`, or `STRUCT_DEF`.\n"); 46 acc.push_str("/// The kind of syntax node, e.g. `IDENT`, `USE_KW`, or `STRUCT_DEF`.\n");
47 acc.push_str("#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]\n"); 47 acc.push_str("#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]\n");
48 acc.push_str("#[repr(u32)]\n");
49 acc.push_str("pub enum SyntaxKind {\n"); 48 acc.push_str("pub enum SyntaxKind {\n");
50 for kind in syntax_kinds.iter() { 49 for kind in syntax_kinds.iter() {
51 write!(acc, " {},\n", scream(kind)).unwrap(); 50 write!(acc, " {},\n", scream(kind)).unwrap();