diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-02 20:20:24 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-02 20:20:24 +0100 |
commit | 7faec1c30046769d4ae490e15cf5405bcfbdeef8 (patch) | |
tree | 6d268b721027a5350928a6c5a0ec227b5fde8ebc /crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.txt | |
parent | a8397deab914240aca8f015fb3736689919c0a5b (diff) | |
parent | e94587e3153b52684fd3f6b82c8e7efc09ff5c8d (diff) |
Merge #1752
1752: Always wrap blocks into block expressions r=flodiebold a=matklad
This way, things like function bodies are expressions, and we don't have to single them out
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.txt | 105 |
1 files changed, 53 insertions, 52 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.txt b/crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.txt index 4f7e809c5..cdc9f05ae 100644 --- a/crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.txt +++ b/crates/ra_syntax/test_data/parser/ok/0030_string_suffixes.txt | |||
@@ -8,56 +8,57 @@ SOURCE_FILE@[0; 112) | |||
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; 111) | 11 | BLOCK_EXPR@[10; 111) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 111) |
13 | WHITESPACE@[11; 16) "\n " | 13 | L_CURLY@[10; 11) "{" |
14 | LET_STMT@[16; 31) | 14 | WHITESPACE@[11; 16) "\n " |
15 | LET_KW@[16; 19) "let" | 15 | LET_STMT@[16; 31) |
16 | WHITESPACE@[19; 20) " " | 16 | LET_KW@[16; 19) "let" |
17 | PLACEHOLDER_PAT@[20; 21) | 17 | WHITESPACE@[19; 20) " " |
18 | UNDERSCORE@[20; 21) "_" | 18 | PLACEHOLDER_PAT@[20; 21) |
19 | WHITESPACE@[21; 22) " " | 19 | UNDERSCORE@[20; 21) "_" |
20 | EQ@[22; 23) "=" | 20 | WHITESPACE@[21; 22) " " |
21 | WHITESPACE@[23; 24) " " | 21 | EQ@[22; 23) "=" |
22 | LITERAL@[24; 30) | 22 | WHITESPACE@[23; 24) " " |
23 | CHAR@[24; 30) "\'c\'u32" | 23 | LITERAL@[24; 30) |
24 | SEMI@[30; 31) ";" | 24 | CHAR@[24; 30) "\'c\'u32" |
25 | WHITESPACE@[31; 36) "\n " | 25 | SEMI@[30; 31) ";" |
26 | LET_STMT@[36; 60) | 26 | WHITESPACE@[31; 36) "\n " |
27 | LET_KW@[36; 39) "let" | 27 | LET_STMT@[36; 60) |
28 | WHITESPACE@[39; 40) " " | 28 | LET_KW@[36; 39) "let" |
29 | PLACEHOLDER_PAT@[40; 41) | 29 | WHITESPACE@[39; 40) " " |
30 | UNDERSCORE@[40; 41) "_" | 30 | PLACEHOLDER_PAT@[40; 41) |
31 | WHITESPACE@[41; 42) " " | 31 | UNDERSCORE@[40; 41) "_" |
32 | EQ@[42; 43) "=" | 32 | WHITESPACE@[41; 42) " " |
33 | WHITESPACE@[43; 44) " " | 33 | EQ@[42; 43) "=" |
34 | LITERAL@[44; 59) | 34 | WHITESPACE@[43; 44) " " |
35 | STRING@[44; 59) "\"string\"invalid" | 35 | LITERAL@[44; 59) |
36 | SEMI@[59; 60) ";" | 36 | STRING@[44; 59) "\"string\"invalid" |
37 | WHITESPACE@[60; 65) "\n " | 37 | SEMI@[59; 60) ";" |
38 | LET_STMT@[65; 83) | 38 | WHITESPACE@[60; 65) "\n " |
39 | LET_KW@[65; 68) "let" | 39 | LET_STMT@[65; 83) |
40 | WHITESPACE@[68; 69) " " | 40 | LET_KW@[65; 68) "let" |
41 | PLACEHOLDER_PAT@[69; 70) | 41 | WHITESPACE@[68; 69) " " |
42 | UNDERSCORE@[69; 70) "_" | 42 | PLACEHOLDER_PAT@[69; 70) |
43 | WHITESPACE@[70; 71) " " | 43 | UNDERSCORE@[69; 70) "_" |
44 | EQ@[71; 72) "=" | 44 | WHITESPACE@[70; 71) " " |
45 | WHITESPACE@[72; 73) " " | 45 | EQ@[71; 72) "=" |
46 | LITERAL@[73; 82) | 46 | WHITESPACE@[72; 73) " " |
47 | BYTE@[73; 82) "b\'b\'_suff" | 47 | LITERAL@[73; 82) |
48 | SEMI@[82; 83) ";" | 48 | BYTE@[73; 82) "b\'b\'_suff" |
49 | WHITESPACE@[83; 88) "\n " | 49 | SEMI@[82; 83) ";" |
50 | LET_STMT@[88; 109) | 50 | WHITESPACE@[83; 88) "\n " |
51 | LET_KW@[88; 91) "let" | 51 | LET_STMT@[88; 109) |
52 | WHITESPACE@[91; 92) " " | 52 | LET_KW@[88; 91) "let" |
53 | PLACEHOLDER_PAT@[92; 93) | 53 | WHITESPACE@[91; 92) " " |
54 | UNDERSCORE@[92; 93) "_" | 54 | PLACEHOLDER_PAT@[92; 93) |
55 | WHITESPACE@[93; 94) " " | 55 | UNDERSCORE@[92; 93) "_" |
56 | EQ@[94; 95) "=" | 56 | WHITESPACE@[93; 94) " " |
57 | WHITESPACE@[95; 96) " " | 57 | EQ@[94; 95) "=" |
58 | LITERAL@[96; 108) | 58 | WHITESPACE@[95; 96) " " |
59 | BYTE_STRING@[96; 108) "b\"bs\"invalid" | 59 | LITERAL@[96; 108) |
60 | SEMI@[108; 109) ";" | 60 | BYTE_STRING@[96; 108) "b\"bs\"invalid" |
61 | WHITESPACE@[109; 110) "\n" | 61 | SEMI@[108; 109) ";" |
62 | R_CURLY@[110; 111) "}" | 62 | WHITESPACE@[109; 110) "\n" |
63 | R_CURLY@[110; 111) "}" | ||
63 | WHITESPACE@[111; 112) "\n" | 64 | WHITESPACE@[111; 112) "\n" |