aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--awkgram.c6
-rw-r--r--awkgram.y6
3 files changed, 15 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e53b21c5..d949d612 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-02 Arnold D. Robbins <arnold@skeeve.com>
+
+ * awkgram.y (append_rule): Add attempt to insert any comment
+ before a rule. Commented out at the moment.
+
2013-07-30 Arnold D. Robbins <arnold@skeeve.com>
* awk.h (enum opcodeval): Add Op_comment.
diff --git a/awkgram.c b/awkgram.c
index d087b140..1ca90845 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -7601,9 +7601,13 @@ append_rule(INSTRUCTION *pattern, INSTRUCTION *action)
action),
tp);
}
-
}
+// if (comment != NULL) {
+// ip = list_prepend(ip, comment);
+// comment = NULL;
+// }
+
list_append(rule_list, rp + 1);
if (rule_block[rule] == NULL)
diff --git a/awkgram.y b/awkgram.y
index 68a328ea..f6013779 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -5053,9 +5053,13 @@ append_rule(INSTRUCTION *pattern, INSTRUCTION *action)
action),
tp);
}
-
}
+// if (comment != NULL) {
+// ip = list_prepend(ip, comment);
+// comment = NULL;
+// }
+
list_append(rule_list, rp + 1);
if (rule_block[rule] == NULL)