From 8c598d3d8a9d6fe0b8303250c88c252ff98883fd Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 8 Aug 2018 22:09:47 +0300 Subject: Support crate vis --- tests/data/parser/inline/0099_crate_keyword_vis.rs | 1 + tests/data/parser/inline/0099_crate_keyword_vis.txt | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/data/parser/inline/0099_crate_keyword_vis.rs create mode 100644 tests/data/parser/inline/0099_crate_keyword_vis.txt (limited to 'tests/data/parser') diff --git a/tests/data/parser/inline/0099_crate_keyword_vis.rs b/tests/data/parser/inline/0099_crate_keyword_vis.rs new file mode 100644 index 000000000..660d927cf --- /dev/null +++ b/tests/data/parser/inline/0099_crate_keyword_vis.rs @@ -0,0 +1 @@ +crate fn main() { } diff --git a/tests/data/parser/inline/0099_crate_keyword_vis.txt b/tests/data/parser/inline/0099_crate_keyword_vis.txt new file mode 100644 index 000000000..25e6d1759 --- /dev/null +++ b/tests/data/parser/inline/0099_crate_keyword_vis.txt @@ -0,0 +1,18 @@ +FILE@[0; 20) + FN_ITEM@[0; 19) + VISIBILITY@[0; 5) + CRATE_KW@[0; 5) + WHITESPACE@[5; 6) + FN_KW@[6; 8) + WHITESPACE@[8; 9) + NAME@[9; 13) + IDENT@[9; 13) "main" + PARAM_LIST@[13; 15) + L_PAREN@[13; 14) + R_PAREN@[14; 15) + WHITESPACE@[15; 16) + BLOCK_EXPR@[16; 19) + L_CURLY@[16; 17) + WHITESPACE@[17; 18) + R_CURLY@[18; 19) + WHITESPACE@[19; 20) -- cgit v1.2.3