diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-05 11:35:57 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-05 11:35:57 -0600 |
commit | 45529cca7626677416c8d6048b5de8f4ff615fb8 (patch) | |
tree | 145a669a27ec2b956b74e45694a1fe97ad7d2125 /src/makefile | |
parent | 9267fb0387a87edc4b059dbbdf0258ec6b7cc62d (diff) | |
download | makers-45529cca7626677416c8d6048b5de8f4ff615fb8.tar.gz makers-45529cca7626677416c8d6048b5de8f4ff615fb8.zip |
yeet spaces before a comment alongside the comment
Diffstat (limited to 'src/makefile')
-rw-r--r-- | src/makefile/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makefile/input.rs b/src/makefile/input.rs index b828829..3fe28e7 100644 --- a/src/makefile/input.rs +++ b/src/makefile/input.rs @@ -298,7 +298,7 @@ impl<'a, 'parent, R: BufRead> MakefileReader<'a, 'parent, R> { lazy_static! { static ref COMMENT: Regex = Regex::new("#.*$").unwrap(); } - let line = COMMENT.replace(&line, "").into_owned(); + let line = COMMENT.replace(&line, "").trim_end().to_owned(); // handle escaped newlines let mut line_pieces = vec![line]; |