diff options
author | veetaha <[email protected]> | 2020-04-06 12:04:26 +0100 |
---|---|---|
committer | veetaha <[email protected]> | 2020-04-06 12:04:26 +0100 |
commit | da091b130347c4d6d8c75acb8e65c30a17dc1f5e (patch) | |
tree | f97939669a700ed80a64086b1f0aefd530bc9bea /crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast | |
parent | ec3fb1cdb4f1808a11fb6057550ed721c2aa36a9 (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/0139_param_outer_arg.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast b/crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast new file mode 100644 index 000000000..cf202c94b --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0139_param_outer_arg.rast | |||
@@ -0,0 +1,35 @@ | |||
1 | SOURCE_FILE@[0; 28) | ||
2 | FN_DEF@[0; 27) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 4) | ||
6 | IDENT@[3; 4) "f" | ||
7 | PARAM_LIST@[4; 24) | ||
8 | L_PAREN@[4; 5) "(" | ||
9 | ATTR@[5; 13) | ||
10 | POUND@[5; 6) "#" | ||
11 | L_BRACK@[6; 7) "[" | ||
12 | PATH@[7; 12) | ||
13 | PATH_SEGMENT@[7; 12) | ||
14 | NAME_REF@[7; 12) | ||
15 | IDENT@[7; 12) "attr1" | ||
16 | R_BRACK@[12; 13) "]" | ||
17 | WHITESPACE@[13; 14) " " | ||
18 | PARAM@[14; 23) | ||
19 | BIND_PAT@[14; 17) | ||
20 | NAME@[14; 17) | ||
21 | IDENT@[14; 17) "pat" | ||
22 | COLON@[17; 18) ":" | ||
23 | WHITESPACE@[18; 19) " " | ||
24 | PATH_TYPE@[19; 23) | ||
25 | PATH@[19; 23) | ||
26 | PATH_SEGMENT@[19; 23) | ||
27 | NAME_REF@[19; 23) | ||
28 | IDENT@[19; 23) "Type" | ||
29 | R_PAREN@[23; 24) ")" | ||
30 | WHITESPACE@[24; 25) " " | ||
31 | BLOCK_EXPR@[25; 27) | ||
32 | BLOCK@[25; 27) | ||
33 | L_CURLY@[25; 26) "{" | ||
34 | R_CURLY@[26; 27) "}" | ||
35 | WHITESPACE@[27; 28) "\n" | ||