diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-09-30 14:55:25 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-09-30 14:55:25 -0700 |
commit | 2f33e5919d2e3eb1a08cdd44a34f779a50ad2242 (patch) | |
tree | 686fa4673d372cbd882873b8bf45234d9bea8ad7 /tokenizer.h | |
parent | cbe615224da57e96cfe609eb92f115e0d45f0f28 (diff) |
Better error messages for `EDITOR=vim git...` type commands.
Diffstat (limited to 'tokenizer.h')
-rw-r--r-- | tokenizer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tokenizer.h b/tokenizer.h index 42516a1b..027f2d6d 100644 --- a/tokenizer.h +++ b/tokenizer.h @@ -145,6 +145,9 @@ int tok_has_next(tokenizer_t *tok); */ int tok_get_pos(tokenizer_t *tok); +/** Returns the token type after the current one, without adjusting the position. Optionally returns the next string by reference. */ +enum token_type tok_peek_next(tokenizer_t *tok, wcstring *out_next_string); + /** Returns the original string to tokenizer */ |