diff options
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r-- | libbuild2/parser.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index 3014681..e199a9a 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -414,7 +414,7 @@ namespace build2 // Return true if the name token can be considered a directive keyword. // bool - keyword (token&); + keyword (const token&); // Buildspec. // @@ -472,6 +472,12 @@ namespace build2 token_type next_after_newline (token&, token_type&, char after = '\0'); + // As above but the after argument is assumed to be a name rather than + // a token (printed as is rather than quoted). + // + token_type + next_after_newline (token&, token_type&, const char* after); + // Be careful with peeking and switching the lexer mode. See keyword() // for more information. // |