From 943f6886ca150a5852fb336791cab9f045c47433 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 5 Apr 2021 15:31:11 -0600 Subject: detect conditionals with leading spaces --- src/makefile/conditional.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/makefile') 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, ) -> Result> { + 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), -- cgit v1.2.3