aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.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/0053_outer_attribute_on_macro_rules.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/0053_outer_attribute_on_macro_rules.rast')
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.rast39
1 files changed, 39 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.rast b/crates/ra_syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.rast
new file mode 100644
index 000000000..04ff0e2ff
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/ok/0053_outer_attribute_on_macro_rules.rast
@@ -0,0 +1,39 @@
1SOURCE_FILE@[0; 65)
2 MACRO_CALL@[0; 64)
3 COMMENT@[0; 13) "/// Some docs"
4 WHITESPACE@[13; 14) "\n"
5 ATTR@[14; 29)
6 POUND@[14; 15) "#"
7 L_BRACK@[15; 16) "["
8 PATH@[16; 28)
9 PATH_SEGMENT@[16; 28)
10 NAME_REF@[16; 28)
11 IDENT@[16; 28) "macro_export"
12 R_BRACK@[28; 29) "]"
13 WHITESPACE@[29; 30) "\n"
14 PATH@[30; 41)
15 PATH_SEGMENT@[30; 41)
16 NAME_REF@[30; 41)
17 IDENT@[30; 41) "macro_rules"
18 EXCL@[41; 42) "!"
19 WHITESPACE@[42; 43) " "
20 NAME@[43; 46)
21 IDENT@[43; 46) "foo"
22 WHITESPACE@[46; 47) " "
23 TOKEN_TREE@[47; 64)
24 L_CURLY@[47; 48) "{"
25 WHITESPACE@[48; 53) "\n "
26 TOKEN_TREE@[53; 55)
27 L_PAREN@[53; 54) "("
28 R_PAREN@[54; 55) ")"
29 WHITESPACE@[55; 56) " "
30 EQ@[56; 57) "="
31 R_ANGLE@[57; 58) ">"
32 WHITESPACE@[58; 59) " "
33 TOKEN_TREE@[59; 61)
34 L_CURLY@[59; 60) "{"
35 R_CURLY@[60; 61) "}"
36 SEMI@[61; 62) ";"
37 WHITESPACE@[62; 63) "\n"
38 R_CURLY@[63; 64) "}"
39 WHITESPACE@[64; 65) "\n"