diff options
Diffstat (limited to 'src/makefile/mod.rs')
-rw-r--r-- | src/makefile/mod.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs index 9c4967a..dfedd97 100644 --- a/src/makefile/mod.rs +++ b/src/makefile/mod.rs @@ -45,7 +45,13 @@ impl LineType { for token in line_tokens.tokens() { if let Token::Text(text) = token { let colon_idx = text.find(':'); + #[cfg(not(feature = "full"))] let equals_idx = text.find('='); + #[cfg(feature = "full")] + let equals_idx = ["=", ":=", "::=", "?=", "+="] + .iter() + .filter_map(|p| text.find(p)) + .min(); match (colon_idx, equals_idx) { (Some(_), None) => { return Self::Rule; @@ -56,7 +62,7 @@ impl LineType { (None, Some(_)) => { return Self::Macro; } - (Some(c), Some(e)) if e < c => { + (Some(c), Some(e)) if e <= c => { return Self::Macro; } _ => {} |