aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-14 18:43:06 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-14 18:43:06 -0600
commit7ac635054c43f28bf73233925ae13120b9ad86b8 (patch)
treebfc5fb4407cfceace8886c4520ca70d00d310f3f /src
parent3767efd290d9672b136a01e3b56db68c207c5755 (diff)
downloadmakers-7ac635054c43f28bf73233925ae13120b9ad86b8.tar.gz
makers-7ac635054c43f28bf73233925ae13120b9ad86b8.zip
correctly handle lines that start with `export_`
Diffstat (limited to 'src')
-rw-r--r--src/makefile/input.rs4
1 files changed, 2 insertions, 2 deletions
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() {