diff options
author | Aleksey Kladov <[email protected]> | 2018-01-08 19:20:58 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-08 19:20:58 +0000 |
commit | bdddfc9eb89ee717c38a117383a313e5a49bb267 (patch) | |
tree | ae7344a41751a75e9d965c2741f0e5bf56ba34ae /src | |
parent | b61617f752668d1425133d0bf32d62dd1135c66a (diff) |
Musings about items
Diffstat (limited to 'src')
-rw-r--r-- | src/parser/event_parser/grammar/items.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parser/event_parser/grammar/items.rs b/src/parser/event_parser/grammar/items.rs index 631eb4736..b6d260fd8 100644 --- a/src/parser/event_parser/grammar/items.rs +++ b/src/parser/event_parser/grammar/items.rs | |||
@@ -33,6 +33,14 @@ fn mod_item(p: &mut Parser) { | |||
33 | fn item(p: &mut Parser) -> bool { | 33 | fn item(p: &mut Parser) -> bool { |
34 | attributes::outer_attributes(p); | 34 | attributes::outer_attributes(p); |
35 | visibility(p); | 35 | visibility(p); |
36 | // node_if(p, USE_KW, USE_ITEM, use_item) | ||
37 | // || extern crate_fn | ||
38 | // || node_if(p, STATIC_KW, STATIC_ITEM, static_item) | ||
39 | // || node_if(p, CONST_KW, CONST_ITEM, const_item) or const FN! | ||
40 | // || unsafe trait, impl | ||
41 | // || node_if(p, FN_KW, FN_ITEM, fn_item) | ||
42 | // || node_if(p, MOD_KW, MOD_ITEM, mod_item) | ||
43 | // || node_if(p, TYPE_KW, TYPE_ITEM, type_item) | ||
36 | node_if(p, STRUCT_KW, STRUCT_ITEM, struct_item) | 44 | node_if(p, STRUCT_KW, STRUCT_ITEM, struct_item) |
37 | || node_if(p, FN_KW, FN_ITEM, fn_item) | 45 | || node_if(p, FN_KW, FN_ITEM, fn_item) |
38 | } | 46 | } |