From e42da2a469404e1d421ccee7ccbccb36f363a98b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Sep 2019 13:57:10 +0200 Subject: Handle attributes in switch value and pattern expressions --- libbuild2/parser.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbuild2/parser.hxx') diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index 581ad1b..7174b3e 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -336,6 +336,14 @@ namespace build2 return v; } + // As above but also handle value attributes. + // + value + parse_value_with_attributes (token& t, token_type& tt, + pattern_mode pmode, + const char* what = "name", + const string* separators = &name_separators); + // Append names and return the indication if the parsed value is not NULL // and whether it is typed (and whether it is a pattern if pattern_mode is // detect). -- cgit v1.1