aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-04-06 12:04:26 +0100
committerveetaha <[email protected]>2020-04-06 12:04:26 +0100
commitda091b130347c4d6d8c75acb8e65c30a17dc1f5e (patch)
treef97939669a700ed80a64086b1f0aefd530bc9bea /crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast
parentec3fb1cdb4f1808a11fb6057550ed721c2aa36a9 (diff)
Migrate tests .txt -> .rast
The sytax tree output files now use .rast extension (rust-analyzer syntax tree or rust abstract syntax tree (whatever)). This format has a editors/code/ra_syntax_tree.tmGrammar.json declaration that supplies nice syntax highlighting for .rast files.
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast30
1 files changed, 30 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast b/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast
new file mode 100644
index 000000000..e75d569f0
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0044_block_items.rast
@@ -0,0 +1,30 @@
1SOURCE_FILE@[0; 21)
2 FN_DEF@[0; 20)
3 FN_KW@[0; 2) "fn"
4 WHITESPACE@[2; 3) " "
5 NAME@[3; 4)
6 IDENT@[3; 4) "a"
7 PARAM_LIST@[4; 6)
8 L_PAREN@[4; 5) "("
9 R_PAREN@[5; 6) ")"
10 WHITESPACE@[6; 7) " "
11 BLOCK_EXPR@[7; 20)
12 BLOCK@[7; 20)
13 L_CURLY@[7; 8) "{"
14 WHITESPACE@[8; 9) " "
15 FN_DEF@[9; 18)
16 FN_KW@[9; 11) "fn"
17 WHITESPACE@[11; 12) " "
18 NAME@[12; 13)
19 IDENT@[12; 13) "b"
20 PARAM_LIST@[13; 15)
21 L_PAREN@[13; 14) "("
22 R_PAREN@[14; 15) ")"
23 WHITESPACE@[15; 16) " "
24 BLOCK_EXPR@[16; 18)
25 BLOCK@[16; 18)
26 L_CURLY@[16; 17) "{"
27 R_CURLY@[17; 18) "}"
28 WHITESPACE@[18; 19) " "
29 R_CURLY@[19; 20) "}"
30 WHITESPACE@[20; 21) "\n"