aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/parser.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-01-23 13:33:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-01-23 13:33:00 +0200
commitd807adcd677392c93fed65e04af0a46ae159c8ef (patch)
treec36c131e6ffd3b21fa0c2c7f7632f33a04878763 /libbuild2/build/script/parser.hxx
parentbcde39204f0f15f207a10da59347db514936c617 (diff)
Fix bug in Buildscript pre-parsing logic
Diffstat (limited to 'libbuild2/build/script/parser.hxx')
-rw-r--r--libbuild2/build/script/parser.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/libbuild2/build/script/parser.hxx b/libbuild2/build/script/parser.hxx
index ce550fc..8f86b24 100644
--- a/libbuild2/build/script/parser.hxx
+++ b/libbuild2/build/script/parser.hxx
@@ -396,7 +396,12 @@ namespace build2
//
optional<location> computed_var_;
- // True during pre-parsing when the pre-parse mode is temporarily
+ // True if we (rather than the base parser) turned on the pre-parse
+ // mode.
+ //
+ bool top_pre_parse_;
+
+ // True during top-pre-parsing when the pre-parse mode is temporarily
// suspended to perform expansion.
//
bool pre_parse_suspended_ = false;