diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2019-02-18 00:30:45 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2019-02-18 00:30:45 +0000 |
commit | ba291e3f1d245fab22d9bfcf9c3e666cedb47d96 (patch) | |
tree | a27ca6d23870dff22ce41e1bd64aa60e5267b173 | |
parent | 2e50ebe6fb3ece6c33d648ca3e222524d79c3999 (diff) | |
download | libcss-ba291e3f1d245fab22d9bfcf9c3e666cedb47d96.tar.gz libcss-ba291e3f1d245fab22d9bfcf9c3e666cedb47d96.tar.bz2 |
Parse: fix dump of tokens with interned strings
-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 f02526b..febf62b 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); |