From 11f990b55294a9eb8d5d4f29fa9a277702ca72b9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 14 Nov 2019 16:25:03 +0200 Subject: Cleanup attribute parsing code --- libbuild2/test/script/parser.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libbuild2/test') 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; -- cgit v1.1