From 11f990b55294a9eb8d5d4f29fa9a277702ca72b9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 14 Nov 2019 16:25:03 +0200 Subject: Cleanup attribute parsing code --- libbuild2/parser.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libbuild2/parser.hxx') 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 -- cgit v1.1