diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-22 08:05:02 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-22 08:05:02 +0000 |
commit | 436df298bac711e0a666e9bad1a32afe3ce0c358 (patch) | |
tree | e078f8a24afd6413afce96c90a85c6577ffc8662 /crates/ra_syntax/test_data/parser/inline/ok | |
parent | d33493d779ba573403804b8d78e9b72fcf98f894 (diff) | |
parent | 737045c1eac87ab78f0042340f0311d3679158b0 (diff) |
Merge #2642
2642: Use name instead of ident in parser for macro 2.0 syntax r=matklad a=edwin0cheng
Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0147_macro_def.txt | 6 | ||||
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0148_pub_macro_def.txt | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0147_macro_def.txt b/crates/ra_syntax/test_data/parser/inline/ok/0147_macro_def.txt index af1122bfa..3556099bd 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0147_macro_def.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0147_macro_def.txt | |||
@@ -2,7 +2,8 @@ SOURCE_FILE@[0; 50) | |||
2 | MACRO_DEF@[0; 28) | 2 | MACRO_DEF@[0; 28) |
3 | MACRO_KW@[0; 5) "macro" | 3 | MACRO_KW@[0; 5) "macro" |
4 | WHITESPACE@[5; 6) " " | 4 | WHITESPACE@[5; 6) " " |
5 | IDENT@[6; 7) "m" | 5 | NAME@[6; 7) |
6 | IDENT@[6; 7) "m" | ||
6 | WHITESPACE@[7; 8) " " | 7 | WHITESPACE@[7; 8) " " |
7 | TOKEN_TREE@[8; 28) | 8 | TOKEN_TREE@[8; 28) |
8 | L_CURLY@[8; 9) "{" | 9 | L_CURLY@[8; 9) "{" |
@@ -27,7 +28,8 @@ SOURCE_FILE@[0; 50) | |||
27 | MACRO_DEF@[29; 49) | 28 | MACRO_DEF@[29; 49) |
28 | MACRO_KW@[29; 34) "macro" | 29 | MACRO_KW@[29; 34) "macro" |
29 | WHITESPACE@[34; 35) " " | 30 | WHITESPACE@[34; 35) " " |
30 | IDENT@[35; 36) "m" | 31 | NAME@[35; 36) |
32 | IDENT@[35; 36) "m" | ||
31 | TOKEN_TREE@[36; 49) | 33 | TOKEN_TREE@[36; 49) |
32 | TOKEN_TREE@[36; 46) | 34 | TOKEN_TREE@[36; 46) |
33 | L_PAREN@[36; 37) "(" | 35 | L_PAREN@[36; 37) "(" |
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 index 985f61f89..cfd79d9c2 100644 --- 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 | |||
@@ -5,7 +5,8 @@ SOURCE_FILE@[0; 24) | |||
5 | WHITESPACE@[3; 4) " " | 5 | WHITESPACE@[3; 4) " " |
6 | MACRO_KW@[4; 9) "macro" | 6 | MACRO_KW@[4; 9) "macro" |
7 | WHITESPACE@[9; 10) " " | 7 | WHITESPACE@[9; 10) " " |
8 | IDENT@[10; 11) "m" | 8 | NAME@[10; 11) |
9 | IDENT@[10; 11) "m" | ||
9 | TOKEN_TREE@[11; 23) | 10 | TOKEN_TREE@[11; 23) |
10 | TOKEN_TREE@[11; 20) | 11 | TOKEN_TREE@[11; 20) |
11 | L_PAREN@[11; 12) "(" | 12 | L_PAREN@[11; 12) "(" |