Tweak debugging output

This commit is contained in:
Max Brunsfeld 2014-10-05 16:56:29 -07:00
parent e5ea4efb0b
commit 6d37877e49
3 changed files with 10 additions and 11 deletions

View file

@ -96,7 +96,9 @@ struct TSLanguage {
DEBUG_LEX((0 < lookahead &&lookahead <= 255 ? "CHAR '%c'" : "CHAR %d"), \
lookahead);
#define START_TOKEN() ts_lexer_start_token(lexer);
#define START_TOKEN() \
DEBUG_LEX("START TOKEN %lu", lexer->current_position.chars); \
ts_lexer_start_token(lexer);
#define ADVANCE(state_index) \
{ \