From 79c0398908ddde2618189f0e1bad01ccf034e279 Mon Sep 17 00:00:00 2001 From: Jorge Morante Date: Sun, 13 Jan 2019 14:45:19 +0100 Subject: [PATCH] WIP --- scripts/hinter.awk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/hinter.awk b/scripts/hinter.awk index ddecc95..a0aab7c 100644 --- a/scripts/hinter.awk +++ b/scripts/hinter.awk @@ -59,6 +59,13 @@ BEGIN { line = post_match; } + if (length(post_match) > 0) { + tokens_by_line[n_lines][n_tokens]["value"] = post_match + tokens_by_line[n_lines][n_tokens]["type"] = "text" + + n_tokens++ + } + if (n_tokens == 0) { tokens_by_line[n_lines][n_tokens]["value"] = line tokens_by_line[n_lines][n_tokens]["type"] = "text"