Merge pull request #1200 from efyang/strayspace

Remove extra whitespace after macro calls
This commit is contained in:
Nick Cameron 2016-10-28 09:14:37 +13:00 committed by GitHub
commit 8494d5f89c
3 changed files with 13 additions and 0 deletions

View File

@ -183,6 +183,13 @@ fn replace_chars(string: &str) -> String {
if last_wspace.is_none() { if last_wspace.is_none() {
last_wspace = Some(i); last_wspace = Some(i);
} }
} else if c == ';' {
if last_wspace.is_some() {
line_start = i;
}
rewrite_next_comment = rewrite_next_comment || kind == CodeCharKind::Normal;
last_wspace = None;
} else { } else {
rewrite_next_comment = rewrite_next_comment || kind == CodeCharKind::Normal; rewrite_next_comment = rewrite_next_comment || kind == CodeCharKind::Normal;
last_wspace = None; last_wspace = None;

View File

@ -0,0 +1,3 @@
fn main() {
assert!(true) ;
}

View File

@ -0,0 +1,3 @@
fn main() {
assert!(true);
}