aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile/input.rs')
-rw-r--r--src/makefile/input.rs6
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;