cuddle-else bug Gnu Indent v 2.2.11
Oscar Svensson <[email protected]> Tue, 13 Sep 2016 11:02:56 +0200
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <CAJrfdauEx2EooB2kTSO=y1FCOuTRetREsupAV0O6qBcuv8mjtA@mail.gmail.com> |
--001a114075c2f58f77053c5fe007 Content-Type: text/plain; charset=UTF-8 Hello, I recently found a bug in Gnu Indent 2.2.11. The bug appears when the -ce(--cuddle-else) option is used. When source code is using the INDENT-OFF/-ON commands after a if statement. See the attached files a case when this happends and how the result looks like. Regards, Oscar Svensson --001a114075c2f58f77053c5fe007 Content-Type: text/x-csrc; charset=US-ASCII; name="orig_test.c" Content-Disposition: attachment; filename="orig_test.c" Content-Transfer-Encoding: base64 X-Attachment-Id: f_it19138w0 aW50IG1haW4gKCkgewogIGlmICh0cnVlKSB7CgogIH0KICAvKiAqSU5ERU5ULU9GRiogKi8KICBE KCk7CiAgLyogKklOREVOVC1PTiogKi8KfQo= --001a114075c2f58f77053c5fe007 Content-Type: text/x-csrc; charset=US-ASCII; name="result_test.c" Content-Disposition: attachment; filename="result_test.c" Content-Transfer-Encoding: base64 X-Attachment-Id: f_it191gqa1 aW50Cm1haW4gKCkKewogIGlmICh0cnVlKQogICAgewoKICAgIH0KICAvKiAqSU5ERU5ULU9GRiog Ki8KICBEKCk7CiAgLyogKklOREVOVC1PTiogKi8KICAvKn0K --001a114075c2f58f77053c5fe007 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ bug-indent mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-indent --001a114075c2f58f77053c5fe007--