diff options
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/0094_range_pat.rs | 6 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt | 86 |
2 files changed, 65 insertions, 27 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.rs b/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.rs index 657467e75..3bca7bf5d 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.rs +++ b/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.rs | |||
@@ -1,3 +1,7 @@ | |||
1 | fn main() { | 1 | fn main() { |
2 | match 92 { 0 ... 100 => () } | 2 | match 92 { |
3 | 0 ... 100 => (), | ||
4 | 101 ..= 200 => (), | ||
5 | 200 .. 301=> (), | ||
6 | } | ||
3 | } | 7 | } |
diff --git a/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt b/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt index 12ccc1314..7eb0fcdf4 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0094_range_pat.txt | |||
@@ -1,5 +1,5 @@ | |||
1 | SOURCE_FILE@[0; 47) | 1 | SOURCE_FILE@[0; 113) |
2 | FN_DEF@[0; 46) | 2 | FN_DEF@[0; 112) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
5 | NAME@[3; 7) | 5 | NAME@[3; 7) |
@@ -8,35 +8,69 @@ SOURCE_FILE@[0; 47) | |||
8 | L_PAREN@[7; 8) | 8 | L_PAREN@[7; 8) |
9 | R_PAREN@[8; 9) | 9 | R_PAREN@[8; 9) |
10 | WHITESPACE@[9; 10) | 10 | WHITESPACE@[9; 10) |
11 | BLOCK@[10; 46) | 11 | BLOCK@[10; 112) |
12 | L_CURLY@[10; 11) | 12 | L_CURLY@[10; 11) |
13 | WHITESPACE@[11; 16) | 13 | WHITESPACE@[11; 16) |
14 | MATCH_EXPR@[16; 44) | 14 | MATCH_EXPR@[16; 110) |
15 | MATCH_KW@[16; 21) | 15 | MATCH_KW@[16; 21) |
16 | WHITESPACE@[21; 22) | 16 | WHITESPACE@[21; 22) |
17 | LITERAL@[22; 24) | 17 | LITERAL@[22; 24) |
18 | INT_NUMBER@[22; 24) "92" | 18 | INT_NUMBER@[22; 24) "92" |
19 | WHITESPACE@[24; 25) | 19 | WHITESPACE@[24; 25) |
20 | MATCH_ARM_LIST@[25; 44) | 20 | MATCH_ARM_LIST@[25; 110) |
21 | L_CURLY@[25; 26) | 21 | L_CURLY@[25; 26) |
22 | WHITESPACE@[26; 27) | 22 | WHITESPACE@[26; 36) |
23 | MATCH_ARM@[27; 42) | 23 | MATCH_ARM@[36; 51) |
24 | RANGE_PAT@[27; 36) | 24 | RANGE_PAT@[36; 45) |
25 | LITERAL@[27; 28) | 25 | LITERAL@[36; 37) |
26 | INT_NUMBER@[27; 28) "0" | 26 | INT_NUMBER@[36; 37) "0" |
27 | WHITESPACE@[28; 29) | 27 | WHITESPACE@[37; 38) |
28 | DOTDOTDOT@[29; 32) | 28 | DOTDOTDOT@[38; 41) |
29 | WHITESPACE@[32; 33) | 29 | WHITESPACE@[41; 42) |
30 | LITERAL@[33; 36) | 30 | LITERAL@[42; 45) |
31 | INT_NUMBER@[33; 36) "100" | 31 | INT_NUMBER@[42; 45) "100" |
32 | WHITESPACE@[36; 37) | 32 | WHITESPACE@[45; 46) |
33 | FAT_ARROW@[37; 39) | 33 | FAT_ARROW@[46; 48) |
34 | WHITESPACE@[39; 40) | 34 | WHITESPACE@[48; 49) |
35 | TUPLE_EXPR@[40; 42) | 35 | TUPLE_EXPR@[49; 51) |
36 | L_PAREN@[40; 41) | 36 | L_PAREN@[49; 50) |
37 | R_PAREN@[41; 42) | 37 | R_PAREN@[50; 51) |
38 | WHITESPACE@[42; 43) | 38 | COMMA@[51; 52) |
39 | R_CURLY@[43; 44) | 39 | WHITESPACE@[52; 61) |
40 | WHITESPACE@[44; 45) | 40 | MATCH_ARM@[61; 78) |
41 | R_CURLY@[45; 46) | 41 | RANGE_PAT@[61; 72) |
42 | WHITESPACE@[46; 47) | 42 | LITERAL@[61; 64) |
43 | INT_NUMBER@[61; 64) "101" | ||
44 | WHITESPACE@[64; 65) | ||
45 | DOTDOTEQ@[65; 68) | ||
46 | WHITESPACE@[68; 69) | ||
47 | LITERAL@[69; 72) | ||
48 | INT_NUMBER@[69; 72) "200" | ||
49 | WHITESPACE@[72; 73) | ||
50 | FAT_ARROW@[73; 75) | ||
51 | WHITESPACE@[75; 76) | ||
52 | TUPLE_EXPR@[76; 78) | ||
53 | L_PAREN@[76; 77) | ||
54 | R_PAREN@[77; 78) | ||
55 | COMMA@[78; 79) | ||
56 | WHITESPACE@[79; 88) | ||
57 | MATCH_ARM@[88; 103) | ||
58 | RANGE_PAT@[88; 98) | ||
59 | LITERAL@[88; 91) | ||
60 | INT_NUMBER@[88; 91) "200" | ||
61 | WHITESPACE@[91; 92) | ||
62 | DOTDOT@[92; 94) | ||
63 | WHITESPACE@[94; 95) | ||
64 | LITERAL@[95; 98) | ||
65 | INT_NUMBER@[95; 98) "301" | ||
66 | FAT_ARROW@[98; 100) | ||
67 | WHITESPACE@[100; 101) | ||
68 | TUPLE_EXPR@[101; 103) | ||
69 | L_PAREN@[101; 102) | ||
70 | R_PAREN@[102; 103) | ||
71 | COMMA@[103; 104) | ||
72 | WHITESPACE@[104; 109) | ||
73 | R_CURLY@[109; 110) | ||
74 | WHITESPACE@[110; 111) | ||
75 | R_CURLY@[111; 112) | ||
76 | WHITESPACE@[112; 113) | ||