From 76474f669d55122d3ddc5d7898ea753312c116fd Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Mon, 18 Feb 2019 00:30:45 +0000 Subject: Parse: fix dump of tokens with interned strings --- src/parse/parse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/parse/parse.c') diff --git a/src/parse/parse.c b/src/parse/parse.c index d58e328..d79551a 100644 --- a/src/parse/parse.c +++ b/src/parse/parse.c @@ -2623,7 +2623,11 @@ static void tprinter(void *token) { css_token *t = token; - if (t->data.data) + if (t->idata) { + printf("%d: %.*s", t->type, + (int) lwc_string_length(t->idata), + lwc_string_data(t->idata)); + } else if (t->data.data) printf("%d: %.*s", t->type, (int) t->data.len, t->data.data); else printf("%d", t->type); -- cgit v1.2.3