aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.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/ok/0025_extern_fn_in_block.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/ok/0025_extern_fn_in_block.rast')
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast33
1 files changed, 33 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast b/crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast
new file mode 100644
index 000000000..f5a7a1a5a
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast
@@ -0,0 +1,33 @@
1SOURCE_FILE@[0; 35)
2 FN_DEF@[0; 34)
3 FN_KW@[0; 2) "fn"
4 WHITESPACE@[2; 3) " "
5 NAME@[3; 7)
6 IDENT@[3; 7) "main"
7 PARAM_LIST@[7; 9)
8 L_PAREN@[7; 8) "("
9 R_PAREN@[8; 9) ")"
10 WHITESPACE@[9; 10) " "
11 BLOCK_EXPR@[10; 34)
12 BLOCK@[10; 34)
13 L_CURLY@[10; 11) "{"
14 WHITESPACE@[11; 16) "\n "
15 FN_DEF@[16; 32)
16 ABI@[16; 22)
17 EXTERN_KW@[16; 22) "extern"
18 WHITESPACE@[22; 23) " "
19 FN_KW@[23; 25) "fn"
20 WHITESPACE@[25; 26) " "
21 NAME@[26; 27)
22 IDENT@[26; 27) "f"
23 PARAM_LIST@[27; 29)
24 L_PAREN@[27; 28) "("
25 R_PAREN@[28; 29) ")"
26 WHITESPACE@[29; 30) " "
27 BLOCK_EXPR@[30; 32)
28 BLOCK@[30; 32)
29 L_CURLY@[30; 31) "{"
30 R_CURLY@[31; 32) "}"
31 WHITESPACE@[32; 33) "\n"
32 R_CURLY@[33; 34) "}"
33 WHITESPACE@[34; 35) "\n"