summaryrefslogtreecommitdiffstats
path: root/eshtrans
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-02-08 20:40:42 (EST)
committer P. J. McDermott <pj@pehjota.net>2017-02-08 20:40:42 (EST)
commitbdc35d5bb7b1b59f5bbcc4312f0617fdc1efe3fb (patch)
tree23c4863bc8ab1c28e1fefbdb0d400375740f84ef /eshtrans
parent8ed3dcb534324d8db54bac799eeea01b8a0a7cbb (diff)
downloadeggshell-bdc35d5bb7b1b59f5bbcc4312f0617fdc1efe3fb.zip
eggshell-bdc35d5bb7b1b59f5bbcc4312f0617fdc1efe3fb.tar.gz
eggshell-bdc35d5bb7b1b59f5bbcc4312f0617fdc1efe3fb.tar.bz2
eshtrans/frontend: Clarify awk script in run_lexer()
Diffstat (limited to 'eshtrans')
-rw-r--r--eshtrans/frontend/lexer.esh5
1 files changed, 3 insertions, 2 deletions
diff --git a/eshtrans/frontend/lexer.esh b/eshtrans/frontend/lexer.esh
index a30e7f5..8ce6510 100644
--- a/eshtrans/frontend/lexer.esh
+++ b/eshtrans/frontend/lexer.esh
@@ -901,9 +901,10 @@ run_lexer()
{
for (i = 1; i <= NF; ++i) {
sub(squote, esc_squote, $i);
- printf("lbufv_%d='\''%s'\''\n", j++, $i);
+ printf("lbufv_%d=" squote "%s" squote "\n",
+ j++, $i);
};
- printf("lbufv_%d='\''\n'\''\n", j++);
+ printf("lbufv_%d=" squote "\n" squote "\n", j++);
}
')"
lbufi=0