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/0040_crate_keyword_vis.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/0040_crate_keyword_vis.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast b/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast new file mode 100644 index 000000000..d180fcf20 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast | |||
@@ -0,0 +1,63 @@ | |||
1 | SOURCE_FILE@[0; 71) | ||
2 | FN_DEF@[0; 19) | ||
3 | VISIBILITY@[0; 5) | ||
4 | CRATE_KW@[0; 5) "crate" | ||
5 | WHITESPACE@[5; 6) " " | ||
6 | FN_KW@[6; 8) "fn" | ||
7 | WHITESPACE@[8; 9) " " | ||
8 | NAME@[9; 13) | ||
9 | IDENT@[9; 13) "main" | ||
10 | PARAM_LIST@[13; 15) | ||
11 | L_PAREN@[13; 14) "(" | ||
12 | R_PAREN@[14; 15) ")" | ||
13 | WHITESPACE@[15; 16) " " | ||
14 | BLOCK_EXPR@[16; 19) | ||
15 | BLOCK@[16; 19) | ||
16 | L_CURLY@[16; 17) "{" | ||
17 | WHITESPACE@[17; 18) " " | ||
18 | R_CURLY@[18; 19) "}" | ||
19 | WHITESPACE@[19; 20) "\n" | ||
20 | STRUCT_DEF@[20; 49) | ||
21 | STRUCT_KW@[20; 26) "struct" | ||
22 | WHITESPACE@[26; 27) " " | ||
23 | NAME@[27; 28) | ||
24 | IDENT@[27; 28) "S" | ||
25 | WHITESPACE@[28; 29) " " | ||
26 | RECORD_FIELD_DEF_LIST@[29; 49) | ||
27 | L_CURLY@[29; 30) "{" | ||
28 | WHITESPACE@[30; 31) " " | ||
29 | RECORD_FIELD_DEF@[31; 47) | ||
30 | VISIBILITY@[31; 36) | ||
31 | CRATE_KW@[31; 36) "crate" | ||
32 | WHITESPACE@[36; 37) " " | ||
33 | NAME@[37; 42) | ||
34 | IDENT@[37; 42) "field" | ||
35 | COLON@[42; 43) ":" | ||
36 | WHITESPACE@[43; 44) " " | ||
37 | PATH_TYPE@[44; 47) | ||
38 | PATH@[44; 47) | ||
39 | PATH_SEGMENT@[44; 47) | ||
40 | NAME_REF@[44; 47) | ||
41 | IDENT@[44; 47) "u32" | ||
42 | WHITESPACE@[47; 48) " " | ||
43 | R_CURLY@[48; 49) "}" | ||
44 | WHITESPACE@[49; 50) "\n" | ||
45 | STRUCT_DEF@[50; 70) | ||
46 | STRUCT_KW@[50; 56) "struct" | ||
47 | WHITESPACE@[56; 57) " " | ||
48 | NAME@[57; 58) | ||
49 | IDENT@[57; 58) "T" | ||
50 | TUPLE_FIELD_DEF_LIST@[58; 69) | ||
51 | L_PAREN@[58; 59) "(" | ||
52 | TUPLE_FIELD_DEF@[59; 68) | ||
53 | VISIBILITY@[59; 64) | ||
54 | CRATE_KW@[59; 64) "crate" | ||
55 | WHITESPACE@[64; 65) " " | ||
56 | PATH_TYPE@[65; 68) | ||
57 | PATH@[65; 68) | ||
58 | PATH_SEGMENT@[65; 68) | ||
59 | NAME_REF@[65; 68) | ||
60 | IDENT@[65; 68) "u32" | ||
61 | R_PAREN@[68; 69) ")" | ||
62 | SEMI@[69; 70) ";" | ||
63 | WHITESPACE@[70; 71) "\n" | ||