summaryrefslogtreecommitdiffstats
path: root/src/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.h')
-rw-r--r--src/lexer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lexer.h b/src/lexer.h
index c872b98..75c1b2f 100644
--- a/src/lexer.h
+++ b/src/lexer.h
@@ -46,6 +46,10 @@ struct Lexer {
/// Return a human-readable form of a token, used in error messages.
static const char* TokenName(Token t);
+
+ /// Return a human-readable token hint, used in error messages.
+ static const char* TokenErrorHint(Token t);
+
/// Start parsing some input.
void Start(StringPiece filename, StringPiece input);