diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2019-02-18 00:30:45 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-03-10 13:42:03 +0000 |
commit | 76474f669d55122d3ddc5d7898ea753312c116fd (patch) | |
tree | 0b616a339d6ad8ec0ef53e43724e850e8d487a14 /src/parse | |
parent | 3342c8e3bafba86ff1154db940891a3405cb1c30 (diff) | |
download | libcss-76474f669d55122d3ddc5d7898ea753312c116fd.tar.gz libcss-76474f669d55122d3ddc5d7898ea753312c116fd.tar.bz2 |
Parse: fix dump of tokens with interned strings
Diffstat (limited to 'src/parse')
-rw-r--r-- | src/parse/parse.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |