aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast')
-rw-r--r--crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast33
1 files changed, 33 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast b/crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast
new file mode 100644
index 000000000..1978f30fa
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast
@@ -0,0 +1,33 @@
1SOURCE_FILE@[0; 31)
2 ERROR@[0; 1)
3 R_CURLY@[0; 1) "}"
4 WHITESPACE@[1; 3) "\n\n"
5 STRUCT_DEF@[3; 12)
6 STRUCT_KW@[3; 9) "struct"
7 WHITESPACE@[9; 10) " "
8 NAME@[10; 11)
9 IDENT@[10; 11) "S"
10 SEMI@[11; 12) ";"
11 WHITESPACE@[12; 14) "\n\n"
12 ERROR@[14; 15)
13 R_CURLY@[14; 15) "}"
14 WHITESPACE@[15; 17) "\n\n"
15 FN_DEF@[17; 27)
16 FN_KW@[17; 19) "fn"
17 WHITESPACE@[19; 20) " "
18 NAME@[20; 23)
19 IDENT@[20; 23) "foo"
20 PARAM_LIST@[23; 25)
21 L_PAREN@[23; 24) "("
22 R_PAREN@[24; 25) ")"
23 BLOCK_EXPR@[25; 27)
24 BLOCK@[25; 27)
25 L_CURLY@[25; 26) "{"
26 R_CURLY@[26; 27) "}"
27 WHITESPACE@[27; 29) "\n\n"
28 ERROR@[29; 30)
29 R_CURLY@[29; 30) "}"
30 WHITESPACE@[30; 31) "\n"
31error [0; 0): unmatched `}`
32error [14; 14): unmatched `}`
33error [29; 29): unmatched `}`