From 52dc0ddc84544a59d3a2580d9944d0482a633349 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 28 Jul 2018 13:00:16 +0300 Subject: Add vis test --- src/parser/grammar/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/parser') diff --git a/src/parser/grammar/mod.rs b/src/parser/grammar/mod.rs index 54a63a547..23216452f 100644 --- a/src/parser/grammar/mod.rs +++ b/src/parser/grammar/mod.rs @@ -47,6 +47,11 @@ fn visibility(p: &mut Parser) { p.bump(); if p.at(L_PAREN) { match p.nth(1) { + // test crate_visibility + // pub(crate) struct S; + // pub(self) struct S; + // pub(self) struct S; + // pub(self) struct S; CRATE_KW | SELF_KW | SUPER_KW => { p.bump(); p.bump(); -- cgit v1.2.3