summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2015-10-08 23:46:18 -0400
committerQuentin Carbonneaux2015-10-08 23:46:24 -0400
commit1bf2c09a62f3e17ffdebe66b18b6a87e94a4cb88 (patch)
treed9cfbc9c3f59068e035841800f31661dfd1f9f6b
parent36f20203ed9debdf9d4ceaafa7ea6dd3993c7713 (diff)
patch $ substitution code
-rw-r--r--yacc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/yacc.c b/yacc.c
index 91c0be7..01f054e 100644
--- a/yacc.c
+++ b/yacc.c
@@ -1194,6 +1194,10 @@ actout(Rule *r)
fprintf(fout, ".%s", ty);
}
}
+ else {
+ fputc('$', fout);
+ fputc(c, fout);
+ }
}
fputs("\n", fout);
}