aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/parser.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-14 16:25:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-14 16:25:03 +0200
commit11f990b55294a9eb8d5d4f29fa9a277702ca72b9 (patch)
tree0144fbdc2a5b402f8690279ca4d729cbaa7ab213 /libbuild2/parser.hxx
parent3449948b4e56bcb37df4f980c71d907118d7a483 (diff)
Cleanup attribute parsing code
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r--libbuild2/parser.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx
index b07936c..347466d 100644
--- a/libbuild2/parser.hxx
+++ b/libbuild2/parser.hxx
@@ -484,6 +484,13 @@ namespace build2
token_type
next (token&, token_type&);
+ token_type
+ next_with_attributes (token& t, token_type& tt)
+ {
+ enable_attributes ();
+ return next (t, tt);
+ }
+
// If the current token is newline, then get the next token. Otherwise,
// fail unless the current token is eos (i.e., optional newline at the end
// of stream). If the after argument is not \0, use it in diagnostics as