diff options
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r-- | libbuild2/parser.hxx | 7 |
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 |