From c885eea70662bcd06bb66c13c885a467d8eae49e Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 26 Oct 2015 12:47:54 -0700 Subject: [PATCH] Add current position to lexer debug message --- src/runtime/lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/lexer.c b/src/runtime/lexer.c index 6f3aa5a1..6adb89c6 100644 --- a/src/runtime/lexer.c +++ b/src/runtime/lexer.c @@ -40,7 +40,7 @@ static void ts_lexer__get_lookahead(TSLexer *self) { } static void ts_lexer__start(TSLexer *self, TSStateId lex_state) { - DEBUG("start_lex state:%d", lex_state); + DEBUG("start_lex state:%d, pos:%lu", lex_state, self->current_position.chars); DEBUG_LOOKAHEAD(); if (!self->chunk)