diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-30 18:11:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 18:11:18 +0100 |
commit | 861652ffa6b6440a022a353d2e6b9f5ca780d2ec (patch) | |
tree | 7fabe31609082ce2f4c4ccdc9cae43caf5e3b654 /crates/ra_syntax/test_data/parser | |
parent | 972afffded3957c3891116a9a81ac9b049e28ad4 (diff) | |
parent | 45c4f620b1c5b8e462875b6e372db0e849bd6170 (diff) |
Merge #4225
4225: Special-case try macro_rules r=matklad a=edwin0cheng
Similar to #4221, but for `macro_rules! try {}`
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
Diffstat (limited to 'crates/ra_syntax/test_data/parser')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0160_try_macro_rules.rast | 27 | ||||
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0160_try_macro_rules.rs | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0160_try_macro_rules.rast b/crates/ra_syntax/test_data/parser/inline/ok/0160_try_macro_rules.rast new file mode 100644 index 000000000..05b89d1c3 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0160_try_macro_rules.rast | |||
@@ -0,0 +1,27 @@ | |||
1 | SOURCE_FILE@0..30 | ||
2 | MACRO_CALL@0..29 | ||
3 | PATH@0..11 | ||
4 | PATH_SEGMENT@0..11 | ||
5 | NAME_REF@0..11 | ||
6 | IDENT@0..11 "macro_rules" | ||
7 | BANG@11..12 "!" | ||
8 | WHITESPACE@12..13 " " | ||
9 | NAME@13..16 | ||
10 | IDENT@13..16 "try" | ||
11 | WHITESPACE@16..17 " " | ||
12 | TOKEN_TREE@17..29 | ||
13 | L_CURLY@17..18 "{" | ||
14 | WHITESPACE@18..19 " " | ||
15 | TOKEN_TREE@19..21 | ||
16 | L_PAREN@19..20 "(" | ||
17 | R_PAREN@20..21 ")" | ||
18 | WHITESPACE@21..22 " " | ||
19 | EQ@22..23 "=" | ||
20 | R_ANGLE@23..24 ">" | ||
21 | WHITESPACE@24..25 " " | ||
22 | TOKEN_TREE@25..27 | ||
23 | L_CURLY@25..26 "{" | ||
24 | R_CURLY@26..27 "}" | ||
25 | WHITESPACE@27..28 " " | ||
26 | R_CURLY@28..29 "}" | ||
27 | WHITESPACE@29..30 "\n" | ||
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0160_try_macro_rules.rs b/crates/ra_syntax/test_data/parser/inline/ok/0160_try_macro_rules.rs new file mode 100644 index 000000000..2e2ab6e60 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0160_try_macro_rules.rs | |||
@@ -0,0 +1 @@ | |||
macro_rules! try { () => {} } | |||