diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-01-28 17:53:33 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-01-28 17:53:33 +0000 |
commit | 08def60f16a222895b242d907163d914348894c7 (patch) | |
tree | c47d0cef58945190e9e5dcf40317450cfe0db797 /src/parser/event_parser/grammar/items.rs | |
parent | 4adf0c20b71f8eb6365893cb1739b1cd33b081cc (diff) | |
parent | d1d47e62445806a7ecfb747989d2cb34989d5d51 (diff) |
Merge #30
30: Skip over balanced parens r=matklad a=matklad
Diffstat (limited to 'src/parser/event_parser/grammar/items.rs')
-rw-r--r-- | src/parser/event_parser/grammar/items.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser/event_parser/grammar/items.rs b/src/parser/event_parser/grammar/items.rs index 309e4f4de..56e3208ac 100644 --- a/src/parser/event_parser/grammar/items.rs +++ b/src/parser/event_parser/grammar/items.rs | |||
@@ -36,6 +36,11 @@ fn item(p: &mut Parser) { | |||
36 | fn_item(p); | 36 | fn_item(p); |
37 | FN_ITEM | 37 | FN_ITEM |
38 | } | 38 | } |
39 | L_CURLY => { | ||
40 | item.abandon(p); | ||
41 | error_block(p, "expected item"); | ||
42 | return; | ||
43 | } | ||
39 | err_token => { | 44 | err_token => { |
40 | item.abandon(p); | 45 | item.abandon(p); |
41 | let message = if err_token == SEMI { | 46 | let message = if err_token == SEMI { |