Skip to content

Commit 3b94fc3

Browse files
committed
Test macro invocations containing $
1 parent 8746bd4 commit 3b94fc3

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

corpus/macros.txt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ a!(b + c + +);
2828
a!('a'..='z');
2929
a!('\u{0}'..='\u{2}');
3030
a!('lifetime)
31+
a!($)
32+
a!($())
33+
a!($ a $)
34+
a!(${$([ a ])});
3135

3236
----
3337

@@ -52,7 +56,19 @@ a!('lifetime)
5256
(token_tree (char_literal) (char_literal)))
5357
(macro_invocation
5458
(identifier)
55-
(token_tree (identifier))))
59+
(token_tree (identifier)))
60+
(macro_invocation
61+
(identifier)
62+
(token_tree))
63+
(macro_invocation
64+
(identifier)
65+
(token_tree (token_tree)))
66+
(macro_invocation
67+
(identifier)
68+
(token_tree (identifier)))
69+
(macro_invocation
70+
(identifier)
71+
(token_tree (token_tree (token_tree (token_tree (identifier)))))))
5672

5773
============================================
5874
Macro definition

0 commit comments

Comments
 (0)