diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-15 15:00:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-15 15:00:25 +0200 |
commit | 497793c854b9dfbf70c2c23813b6b7f06012bcc2 (patch) | |
tree | be2ec7600889314efbaef22037c094e32b3af6e5 /libbuild2/parser.hxx | |
parent | 417497632ddfa2bdc17688703c24ca3fd60af318 (diff) |
Generalize attributes to be comma-separated with arbitrary values
Before:
x = [string null]
After:
x = [string, null]
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r-- | libbuild2/parser.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index 347466d..8eef03c 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -214,9 +214,9 @@ namespace build2 // struct attributes { - bool has; // Has attributes flag. - location loc; // Start of attributes location. - vector<pair<string, string>> ats; // Attributes. + bool has; // Has attributes flag. + location loc; // Start location. + small_vector<pair<string, value>, 1> ats; // Attributes. explicit operator bool () const {return has;} }; |