aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parser/event_parser/grammar/items/mod.rs5
-rw-r--r--src/parser/event_parser/grammar/items/structs.rs2
-rw-r--r--src/tree/mod.rs2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/parser/event_parser/grammar/items/mod.rs b/src/parser/event_parser/grammar/items/mod.rs
index 886c02d37..0a50fffc1 100644
--- a/src/parser/event_parser/grammar/items/mod.rs
+++ b/src/parser/event_parser/grammar/items/mod.rs
@@ -9,8 +9,9 @@ pub(super) fn mod_contents(p: &mut Parser, stop_on_r_curly: bool) {
9 } 9 }
10} 10}
11 11
12pub(super) const ITEM_FIRST: TokenSet = 12pub(super) const ITEM_FIRST: TokenSet = token_set![
13 token_set![EXTERN_KW, MOD_KW, USE_KW, STRUCT_KW, ENUM_KW, FN_KW, PUB_KW, POUND]; 13 EXTERN_KW, MOD_KW, USE_KW, STRUCT_KW, ENUM_KW, FN_KW, PUB_KW, POUND
14];
14 15
15fn item(p: &mut Parser) { 16fn item(p: &mut Parser) {
16 let item = p.start(); 17 let item = p.start();
diff --git a/src/parser/event_parser/grammar/items/structs.rs b/src/parser/event_parser/grammar/items/structs.rs
index 670406071..6e438413b 100644
--- a/src/parser/event_parser/grammar/items/structs.rs
+++ b/src/parser/event_parser/grammar/items/structs.rs
@@ -59,7 +59,7 @@ pub(super) fn enum_item(p: &mut Parser) {
59 p.bump(); 59 p.bump();
60 expressions::expr(p); 60 expressions::expr(p);
61 } 61 }
62 _ => () 62 _ => (),
63 } 63 }
64 var.complete(p, ENUM_VARIANT); 64 var.complete(p, ENUM_VARIANT);
65 } else { 65 } else {
diff --git a/src/tree/mod.rs b/src/tree/mod.rs
index 4131d855d..9ed0504c7 100644
--- a/src/tree/mod.rs
+++ b/src/tree/mod.rs
@@ -118,7 +118,7 @@ fn has_short_text(kind: SyntaxKind) -> bool {
118 use syntax_kinds::*; 118 use syntax_kinds::*;
119 match kind { 119 match kind {
120 IDENT | LIFETIME => true, 120 IDENT | LIFETIME => true,
121 _ => false 121 _ => false,
122 } 122 }
123} 123}
124 124