From 7ac635054c43f28bf73233925ae13120b9ad86b8 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 14 Apr 2021 18:43:06 -0600 Subject: correctly handle lines that start with `export_` --- src/makefile/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/makefile') diff --git a/src/makefile/input.rs b/src/makefile/input.rs index c9810ab..03e7f18 100644 --- a/src/makefile/input.rs +++ b/src/makefile/input.rs @@ -44,11 +44,11 @@ impl LineType { return Self::Include; } #[cfg(feature = "full")] - if line_tokens.starts_with("export") { + if line_tokens.starts_with("export ") || line_tokens == "export" { return Self::Export; } #[cfg(feature = "full")] - if line_tokens.starts_with("unexport") { + if line_tokens.starts_with("unexport ") || line_tokens == "unexport" { return Self::Unexport; } for token in line_tokens.tokens() { -- cgit v1.2.3