diff options
author | pcpthm <[email protected]> | 2019-03-18 05:34:08 +0000 |
---|---|---|
committer | pcpthm <[email protected]> | 2019-03-18 05:34:08 +0000 |
commit | 76075c74103b3204ebc1bde54a330629d9e00811 (patch) | |
tree | 316ffdffb672856e7d897736e280261a11a07efd /crates/ra_syntax/tests/data/parser/inline/err | |
parent | 3d9c2beb8e0d4e0fbaded7dac259cadf7616a3ad (diff) |
Use Marker argument for item parsers
- Fix pub_expr
- Fix incorrect parsing of crate::path
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline/err')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.rs | 1 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.txt | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.rs b/crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.rs new file mode 100644 index 000000000..2976f6862 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.rs | |||
@@ -0,0 +1 @@ | |||
fn foo() { pub 92; } | |||
diff --git a/crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.txt b/crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.txt new file mode 100644 index 000000000..e65d9c9e1 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/inline/err/0008_pub_expr.txt | |||
@@ -0,0 +1,25 @@ | |||
1 | SOURCE_FILE@[0; 21) | ||
2 | FN_DEF@[0; 20) | ||
3 | FN_KW@[0; 2) | ||
4 | WHITESPACE@[2; 3) | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK@[9; 20) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 11) | ||
14 | ERROR@[11; 14) | ||
15 | VISIBILITY@[11; 14) | ||
16 | PUB_KW@[11; 14) | ||
17 | err: `expected an item` | ||
18 | WHITESPACE@[14; 15) | ||
19 | EXPR_STMT@[15; 18) | ||
20 | LITERAL@[15; 17) | ||
21 | INT_NUMBER@[15; 17) "92" | ||
22 | SEMI@[17; 18) | ||
23 | WHITESPACE@[18; 19) | ||
24 | R_CURLY@[19; 20) | ||
25 | WHITESPACE@[20; 21) | ||