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/0148_pub_macro_def.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/0148_pub_macro_def.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.rast | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.rast b/crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.rast new file mode 100644 index 000000000..cfd79d9c2 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.rast | |||
@@ -0,0 +1,21 @@ | |||
1 | SOURCE_FILE@[0; 24) | ||
2 | MACRO_DEF@[0; 23) | ||
3 | VISIBILITY@[0; 3) | ||
4 | PUB_KW@[0; 3) "pub" | ||
5 | WHITESPACE@[3; 4) " " | ||
6 | MACRO_KW@[4; 9) "macro" | ||
7 | WHITESPACE@[9; 10) " " | ||
8 | NAME@[10; 11) | ||
9 | IDENT@[10; 11) "m" | ||
10 | TOKEN_TREE@[11; 23) | ||
11 | TOKEN_TREE@[11; 20) | ||
12 | L_PAREN@[11; 12) "(" | ||
13 | DOLLAR@[12; 13) "$" | ||
14 | COLON@[13; 14) ":" | ||
15 | IDENT@[14; 19) "ident" | ||
16 | R_PAREN@[19; 20) ")" | ||
17 | WHITESPACE@[20; 21) " " | ||
18 | TOKEN_TREE@[21; 23) | ||
19 | L_CURLY@[21; 22) "{" | ||
20 | R_CURLY@[22; 23) "}" | ||
21 | WHITESPACE@[23; 24) "\n" | ||