This commit is contained in:
Jorge Morante 2019-01-13 14:45:19 +01:00
parent ee87f6aa1e
commit 79c0398908
1 changed files with 7 additions and 0 deletions

View File

@ -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"