]> git.lizzy.rs Git - rust.git/commit
syntax: allow stmt/expr macro invocations to be delimited by {}.
authorHuon Wilson <dbau.pp+github@gmail.com>
Sun, 23 Feb 2014 13:53:59 +0000 (00:53 +1100)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 25 Feb 2014 05:22:27 +0000 (21:22 -0800)
commit6757053cffb585249105fbd76f83a2fe7501219b
tree1af550708ee4ee42e1ebcb02a8e38e6cc226d4e1
parent0309104cc59d6290fba2fe6dd9bfdc18aacab5f8
syntax: allow stmt/expr macro invocations to be delimited by {}.

This makes using control-flow-y macros like `spawn! { ... }` more fluent
and natural.

cc #11892.
src/libsyntax/parse/parser.rs
src/test/compile-fail/macro-bad-delimiter-ident.rs [new file with mode: 0644]
src/test/compile-fail/macro-mismatched-delim-brace-paren.rs [new file with mode: 0644]
src/test/compile-fail/macro-mismatched-delim-paren-brace.rs [new file with mode: 0644]
src/test/run-pass/macro-with-braces-in-expr-position.rs [new file with mode: 0644]