From 0ab1e255ee5c70aedd4d243e0e11109fc4bbcef2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 7 Aug 2018 16:11:40 +0300 Subject: Generalize blocklike --- src/grammar/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/grammar/mod.rs') diff --git a/src/grammar/mod.rs b/src/grammar/mod.rs index b558da477..1b997d861 100644 --- a/src/grammar/mod.rs +++ b/src/grammar/mod.rs @@ -43,6 +43,12 @@ pub(crate) fn file(p: &mut Parser) { file.complete(p, FILE); } + +enum BlockLike { + Block, + NotBlock, +} + fn visibility(p: &mut Parser) { if p.at(PUB_KW) { let vis = p.start(); -- cgit v1.2.3