fix not to delete semicolon

This commit is contained in:
rchaser53 2019-04-07 12:31:57 +09:00
parent 8ec0750bb8
commit 8ffe4146cc
2 changed files with 4 additions and 0 deletions

View file

@ -274,6 +274,9 @@ pub fn rewrite_macro_inner(
DelimToken::Paren if position == MacroPosition::Item => {
Some(format!("{}();", macro_name))
}
DelimToken::Bracket if position == MacroPosition::Item => {
Some(format!("{}[];", macro_name))
}
DelimToken::Paren => Some(format!("{}()", macro_name)),
DelimToken::Bracket => Some(format!("{}[]", macro_name)),
DelimToken::Brace => Some(format!("{} {{}}", macro_name)),

View file

@ -0,0 +1 @@
test![];