aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/parser.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-09-30 13:57:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-09-30 15:30:55 +0200
commite42da2a469404e1d421ccee7ccbccb36f363a98b (patch)
tree62e5f89e99bd6b70dffdfc2f25f5d99d5aae5cd3 /libbuild2/parser.hxx
parent4a295f6ff98e7ff7ec9a33f38748a6537780a1bf (diff)
Handle attributes in switch value and pattern expressions
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r--libbuild2/parser.hxx8
1 files changed, 8 insertions, 0 deletions
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).