aboutsummaryrefslogtreecommitdiff
path: root/src/parser/event_parser/grammar/items/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/event_parser/grammar/items/mod.rs')
-rw-r--r--src/parser/event_parser/grammar/items/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/event_parser/grammar/items/mod.rs b/src/parser/event_parser/grammar/items/mod.rs
index 8ccf8f90f..5cf2fc39a 100644
--- a/src/parser/event_parser/grammar/items/mod.rs
+++ b/src/parser/event_parser/grammar/items/mod.rs
@@ -52,11 +52,15 @@ fn item(p: &mut Parser) {
52 STATIC_ITEM 52 STATIC_ITEM
53 } 53 }
54 CONST_KW => match p.nth(1) { 54 CONST_KW => match p.nth(1) {
55 // test const_fn
56 // const fn foo() {}
55 FN_KW => { 57 FN_KW => {
56 p.bump(); 58 p.bump();
57 fn_item(p); 59 fn_item(p);
58 FN_ITEM 60 FN_ITEM
59 } 61 }
62 // test const_unsafe_fn
63 // const unsafe fn foo() {}
60 UNSAFE_KW if p.nth(2) == FN_KW => { 64 UNSAFE_KW if p.nth(2) == FN_KW => {
61 p.bump(); 65 p.bump();
62 p.bump(); 66 p.bump();