diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-02 17:42:03 -0400 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-08-14 00:00:19 +0300 |
commit | 1457aab67141409f57d25c06f86e227d92808da3 (patch) | |
tree | e7f2fac5c50829e9593a95847679b301c856c24e | |
parent | afc5c481f97b85b803b9b973d52684deceb715d0 (diff) | |
download | egawk-1457aab67141409f57d25c06f86e227d92808da3.tar.gz egawk-1457aab67141409f57d25c06f86e227d92808da3.tar.bz2 egawk-1457aab67141409f57d25c06f86e227d92808da3.zip |
Further attempt on comments. Not so good.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | awkgram.c | 6 | ||||
-rw-r--r-- | awkgram.y | 6 |
3 files changed, 15 insertions, 2 deletions
@@ -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. @@ -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) @@ -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) |