diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-15 23:37:13 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-15 23:37:13 -0600 |
commit | 4896ae35773d45735ee98d46d7dd905d68800405 (patch) | |
tree | ed34613e3eb1f784982a319cde2311990bac46c0 /src | |
parent | be4fba34cb4bd74ca72d2fa2ca41c8a640709548 (diff) | |
download | makers-4896ae35773d45735ee98d46d7dd905d68800405.tar.gz makers-4896ae35773d45735ee98d46d7dd905d68800405.zip |
don't strip comments in multiline macro definitions
Diffstat (limited to 'src')
-rw-r--r-- | src/makefile/input.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/makefile/input.rs b/src/makefile/input.rs index 64b12d7..c2f8e7b 100644 --- a/src/makefile/input.rs +++ b/src/makefile/input.rs @@ -802,7 +802,11 @@ impl<'a, 'parent, R: BufRead> MakefileReader<'a, 'parent, R> { } let mut value = TokenString::empty(); // TODO what should be done with escaped newlines - while let Some((_, line)) = self.next_line(Default::default()) { + let settings = NextLineSettings { + strip_comments: false, // apparently + ..Default::default() + }; + while let Some((_, line)) = self.next_line(settings) { let line = line?; if line == "endef" { break; |