mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
9188ec0f7f
Closes #915 Closes #930 Closes #931
63 lines
1.1 KiB
Rust
63 lines
1.1 KiB
Rust
itemmacro!(this, is.now() .formatted(yay));
|
|
|
|
itemmacro!(really, long.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbb() .is.formatted());
|
|
|
|
itemmacro!{this, is.bracket().formatted()}
|
|
|
|
peg_file! modname ("mygrammarfile.rustpeg");
|
|
|
|
fn main() {
|
|
foo! ( );
|
|
|
|
bar!( a , b , c );
|
|
|
|
baz!(1+2+3, quux. kaas());
|
|
|
|
quux!(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB);
|
|
|
|
kaas!(/* comments */ a /* post macro */, b /* another */);
|
|
|
|
trailingcomma!( a , b , c , );
|
|
|
|
noexpr!( i am not an expression, OK? );
|
|
|
|
vec! [ a , b , c];
|
|
|
|
vec! [AAAAAA, AAAAAA, AAAAAA, AAAAAA, AAAAAA, AAAAAA, AAAAAA, AAAAAA, AAAAAA,
|
|
BBBBB, 5, 100-30, 1.33, b, b, b];
|
|
|
|
vec! [a /* comment */];
|
|
|
|
foo(makro!(1, 3));
|
|
|
|
hamkaas!{ () };
|
|
|
|
macrowithbraces! {dont, format, me}
|
|
|
|
x!(fn);
|
|
|
|
some_macro!(
|
|
|
|
);
|
|
|
|
some_macro![
|
|
];
|
|
|
|
some_macro!{
|
|
// comment
|
|
};
|
|
|
|
some_macro!{
|
|
// comment
|
|
};
|
|
}
|
|
|
|
impl X {
|
|
empty_invoc!{}
|
|
}
|
|
|
|
gfx_pipeline!(pipe {
|
|
vbuf: gfx::VertexBuffer<Vertex> = (),
|
|
out: gfx::RenderTarget<ColorFormat> = "Target0",
|
|
});
|