diff options
author | Aleksey Kladov <[email protected]> | 2018-01-01 19:13:04 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-01 19:13:04 +0000 |
commit | 46422f722bdcadbf4462dd5a9c65756434b2d97a (patch) | |
tree | 6b07f7e0ff1a6113630d8f3d66d38291589be03a /src/parser/event_parser/grammar.rs | |
parent | cb362626f326a565aca34c1a11c95dcb7152b798 (diff) |
Parser: first scraches
Diffstat (limited to 'src/parser/event_parser/grammar.rs')
-rw-r--r-- | src/parser/event_parser/grammar.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser/event_parser/grammar.rs b/src/parser/event_parser/grammar.rs index 5219ed535..0896506fb 100644 --- a/src/parser/event_parser/grammar.rs +++ b/src/parser/event_parser/grammar.rs | |||
@@ -40,6 +40,12 @@ fn mod_items(p: &mut Parser) { | |||
40 | fn item(p: &mut Parser) -> Result { | 40 | fn item(p: &mut Parser) -> Result { |
41 | outer_attributes(p)?; | 41 | outer_attributes(p)?; |
42 | visibility(p)?; | 42 | visibility(p)?; |
43 | if p.current_is(STRUCT_KW) { | ||
44 | p.start(STRUCT_ITEM); | ||
45 | p.bump(); | ||
46 | p.finish(); | ||
47 | return OK; | ||
48 | } | ||
43 | ERR | 49 | ERR |
44 | } | 50 | } |
45 | 51 | ||