aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/parser.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r--libbuild2/parser.hxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx
index bc01e08..2f67c31 100644
--- a/libbuild2/parser.hxx
+++ b/libbuild2/parser.hxx
@@ -619,7 +619,14 @@ namespace build2
enable_attributes ()
{
if (replay_ != replay::play)
- lexer_->enable_attributes ();
+ lexer_->enable_lsbrace ();
+ }
+
+ void
+ enable_subscript ()
+ {
+ if (replay_ != replay::play)
+ lexer_->enable_lsbrace (true /* unseparated */);
}
void