diff options
author | Edwin Cheng <[email protected]> | 2019-12-21 10:29:14 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-12-21 10:29:14 +0000 |
commit | bea8f581186bb8d933357599468dd7d862ae847b (patch) | |
tree | 995f2d26c585324cd3acdf3edd135deec9255ff7 /crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.txt | |
parent | 6eab968c601637361e8fbd1ee93ded1b0d967bee (diff) |
Add macro 2.0 support in parser
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.txt b/crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.txt new file mode 100644 index 000000000..985f61f89 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.txt | |||
@@ -0,0 +1,20 @@ | |||
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 | IDENT@[10; 11) "m" | ||
9 | TOKEN_TREE@[11; 23) | ||
10 | TOKEN_TREE@[11; 20) | ||
11 | L_PAREN@[11; 12) "(" | ||
12 | DOLLAR@[12; 13) "$" | ||
13 | COLON@[13; 14) ":" | ||
14 | IDENT@[14; 19) "ident" | ||
15 | R_PAREN@[19; 20) ")" | ||
16 | WHITESPACE@[20; 21) " " | ||
17 | TOKEN_TREE@[21; 23) | ||
18 | L_CURLY@[21; 22) "{" | ||
19 | R_CURLY@[22; 23) "}" | ||
20 | WHITESPACE@[23; 24) "\n" | ||