aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/lexer.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-09-29 15:17:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-09-29 15:17:33 +0200
commit04bf0b7cbe98c70d7e434e24a3eb4b03889c0c56 (patch)
tree8c9d7a26058fd65433a2ba893e2da1aeacbc9dfe /libbuild2/lexer.hxx
parent785087aa43cf962855724b8fa5da393022204a14 (diff)
Tighten low-verbosity diagnostics name deduction logic
Specifically, don't try to derive low-verbosity name from what looks like an eval context of a function call.
Diffstat (limited to 'libbuild2/lexer.hxx')
-rw-r--r--libbuild2/lexer.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/lexer.hxx b/libbuild2/lexer.hxx
index 148666e..78d35d7 100644
--- a/libbuild2/lexer.hxx
+++ b/libbuild2/lexer.hxx
@@ -175,7 +175,7 @@ namespace build2
virtual token
next ();
- // Peek at the first two characters of the next token(s). Return the
+ // Peek at the first one/two characters of the next token(s). Return the
// characters or '\0' if either would be eos. Also return an indicator of
// whether the next token would be separated. Note: cannot be used to peek
// at the first character of a line.
@@ -184,6 +184,9 @@ namespace build2
// mode in which these characters will actually be parsed use the same
// whitespace separation (the sep_space and sep_newline values).
//
+ pair<char, bool>
+ peek_char ();
+
pair<pair<char, char>, bool>
peek_chars ();