aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/script
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-05-24 16:16:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-05-28 10:10:44 +0200
commit9c3e14bb61d6fb1da6ada3213e2c4d566ddd5e33 (patch)
treec4dcb4f2e9b4430e7a8e74cee08cb101dcfd27d6 /libbuild2/script
parent726aaab07a785b904dd1265bffa603bdd2a7665b (diff)
Add pattern_mode::ignore and use in appropriate places
Diffstat (limited to 'libbuild2/script')
-rw-r--r--libbuild2/script/parser.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/libbuild2/script/parser.cxx b/libbuild2/script/parser.cxx
index 4c8a377..ebfd5fc 100644
--- a/libbuild2/script/parser.cxx
+++ b/libbuild2/script/parser.cxx
@@ -34,7 +34,7 @@ namespace build2
//
return tt != type::newline && start_names (tt)
? parse_value (t, tt,
- pattern_mode::preserve,
+ pattern_mode::ignore,
"variable value",
nullptr)
: value (names ());
@@ -101,7 +101,7 @@ namespace build2
{
parse_names (t, tt,
ns,
- pattern_mode::preserve,
+ pattern_mode::ignore,
true /* chunk */,
"command line",
nullptr);
@@ -1073,7 +1073,7 @@ namespace build2
else
parse_names (t, tt,
ns,
- pattern_mode::preserve,
+ pattern_mode::ignore,
true /* chunk */,
"command line",
nullptr);
@@ -1319,7 +1319,7 @@ namespace build2
parse_names (t, tt,
ns,
- pattern_mode::preserve,
+ pattern_mode::ignore,
true /* chunk */,
"env builtin argument",
nullptr);
@@ -1473,7 +1473,7 @@ namespace build2
next (t, tt);
location l (get_location (t));
names ns (parse_names (t, tt,
- pattern_mode::preserve,
+ pattern_mode::ignore,
true,
"exit status",
nullptr));
@@ -1669,7 +1669,7 @@ namespace build2
//
names ns (tt != type::newline
? parse_names (t, tt,
- pattern_mode::preserve,
+ pattern_mode::ignore,
false,
"here-document line",
nullptr)