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/err/0023_mismatched_paren.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/err/0023_mismatched_paren.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt b/crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt index f2515faa7..6dd04f80e 100644 --- a/crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt +++ b/crates/ra_syntax/test_data/parser/err/0023_mismatched_paren.txt | |||
@@ -8,31 +8,32 @@ SOURCE_FILE@[0; 94) | |||
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; 55) | 11 | BLOCK_EXPR@[10; 55) |
12 | L_CURLY@[10; 11) "{" | 12 | BLOCK@[10; 55) |
13 | WHITESPACE@[11; 16) "\n " | 13 | L_CURLY@[10; 11) "{" |
14 | MACRO_CALL@[16; 49) | 14 | WHITESPACE@[11; 16) "\n " |
15 | PATH@[16; 19) | 15 | MACRO_CALL@[16; 49) |
16 | PATH_SEGMENT@[16; 19) | 16 | PATH@[16; 19) |
17 | NAME_REF@[16; 19) | 17 | PATH_SEGMENT@[16; 19) |
18 | IDENT@[16; 19) "foo" | 18 | NAME_REF@[16; 19) |
19 | EXCL@[19; 20) "!" | 19 | IDENT@[16; 19) "foo" |
20 | WHITESPACE@[20; 21) " " | 20 | EXCL@[19; 20) "!" |
21 | TOKEN_TREE@[21; 49) | 21 | WHITESPACE@[20; 21) " " |
22 | L_PAREN@[21; 22) "(" | 22 | TOKEN_TREE@[21; 49) |
23 | WHITESPACE@[22; 31) "\n " | 23 | L_PAREN@[21; 22) "(" |
24 | IDENT@[31; 34) "bar" | 24 | WHITESPACE@[22; 31) "\n " |
25 | COMMA@[34; 35) "," | 25 | IDENT@[31; 34) "bar" |
26 | WHITESPACE@[35; 36) " " | 26 | COMMA@[34; 35) "," |
27 | STRING@[36; 41) "\"baz\"" | 27 | WHITESPACE@[35; 36) " " |
28 | COMMA@[41; 42) "," | 28 | STRING@[36; 41) "\"baz\"" |
29 | WHITESPACE@[42; 43) " " | 29 | COMMA@[41; 42) "," |
30 | INT_NUMBER@[43; 44) "1" | 30 | WHITESPACE@[42; 43) " " |
31 | COMMA@[44; 45) "," | 31 | INT_NUMBER@[43; 44) "1" |
32 | WHITESPACE@[45; 46) " " | 32 | COMMA@[44; 45) "," |
33 | FLOAT_NUMBER@[46; 49) "2.0" | 33 | WHITESPACE@[45; 46) " " |
34 | WHITESPACE@[49; 54) "\n " | 34 | FLOAT_NUMBER@[46; 49) "2.0" |
35 | R_CURLY@[54; 55) "}" | 35 | WHITESPACE@[49; 54) "\n " |
36 | R_CURLY@[54; 55) "}" | ||
36 | WHITESPACE@[55; 56) " " | 37 | WHITESPACE@[55; 56) " " |
37 | COMMENT@[56; 91) "//~ ERROR incorrect c ..." | 38 | COMMENT@[56; 91) "//~ ERROR incorrect c ..." |
38 | WHITESPACE@[91; 92) "\n" | 39 | WHITESPACE@[91; 92) "\n" |