diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-05 15:31:11 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-05 15:31:11 -0600 |
commit | 943f6886ca150a5852fb336791cab9f045c47433 (patch) | |
tree | 6def671667ed030d269f48f20b9c20f1717f41c4 | |
parent | d24fa2e2c2309b8e32231364e49edbb5ebd53da4 (diff) | |
download | makers-943f6886ca150a5852fb336791cab9f045c47433.tar.gz makers-943f6886ca150a5852fb336791cab9f045c47433.zip |
detect conditionals with leading spaces
-rw-r--r-- | src/makefile/conditional.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/makefile/conditional.rs b/src/makefile/conditional.rs index 149638e..4490e8c 100644 --- a/src/makefile/conditional.rs +++ b/src/makefile/conditional.rs @@ -85,6 +85,7 @@ impl Line { line: &str, expand_macro: impl Fn(&TokenString) -> Result<String>, ) -> Result<Option<Self>> { + let line = line.trim_start(); Ok(Some(if let Some(line) = line.strip_prefix("ifeq ") { match decode_condition_args(line) { Some((arg1, arg2)) => Self::IfEqual(arg1, arg2), |