aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-07-28 11:00:16 +0100
committerAleksey Kladov <[email protected]>2018-07-28 11:00:16 +0100
commit52dc0ddc84544a59d3a2580d9944d0482a633349 (patch)
tree750ddab30c33eb46ae2ad6af9530cdf75e2d9c7d /src
parent9500ad521121f501aea02f549223eb583cb298ee (diff)
Add vis test
Diffstat (limited to 'src')
-rw-r--r--src/parser/grammar/mod.rs5
1 files changed, 5 insertions, 0 deletions
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) {
47 p.bump(); 47 p.bump();
48 if p.at(L_PAREN) { 48 if p.at(L_PAREN) {
49 match p.nth(1) { 49 match p.nth(1) {
50 // test crate_visibility
51 // pub(crate) struct S;
52 // pub(self) struct S;
53 // pub(self) struct S;
54 // pub(self) struct S;
50 CRATE_KW | SELF_KW | SUPER_KW => { 55 CRATE_KW | SELF_KW | SUPER_KW => {
51 p.bump(); 56 p.bump();
52 p.bump(); 57 p.bump();