aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/test/script
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/test/script')
-rw-r--r--libbuild2/test/script/parser.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/libbuild2/test/script/parser.cxx b/libbuild2/test/script/parser.cxx
index aa78437..302ec84 100644
--- a/libbuild2/test/script/parser.cxx
+++ b/libbuild2/test/script/parser.cxx
@@ -1292,8 +1292,7 @@ namespace build2
// want to treat as a literal.
//
mode (lexer_mode::variable_line);
- enable_attributes (); // @@ VAL
- next (t, tt);
+ next_with_attributes (t, tt);
// Parse value attributes if any. Note that it's ok not to have
// anything after the attributes (e.g., foo=[null]).
@@ -3453,8 +3452,7 @@ namespace build2
token t;
type tt;
- enable_attributes (); // Enable `[` recognition.
- next (t, tt);
+ next_with_attributes (t, tt); // Enable `[` recognition.
if (tt != type::lsbrace && tt != type::eos)
fail (t) << "expected '[' instead of " << t;