[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-indent] [BUG] token reorder and comment preservation
From: |
roland . illig |
Subject: |
[Bug-indent] [BUG] token reorder and comment preservation |
Date: |
Tue, 15 Apr 2003 02:04:13 +0200 |
User-agent: |
Mutt/1.4i |
Hi,
I consider the behaviour of `GNU indent 2.2.8' buggy in two situations:
the code snippet
if (a < b) /address@hidden@*/ {
doit();
}
is transformed by $(indent -kr) to
if (a < b) { /address@hidden@ */
doit();
}
This includes two things I don't want to have:
== Token reordering ==
The tokens /address@hidden@*/ and { are swapped. This is something I don't
expect
from a code formatter.
== Comment transformation ==
The comment /address@hidden@*/ is transformed to /address@hidden@ */. This
could lead to
confusion with programs that use annotation comments.
Greetings,
Roland Illig
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-indent] [BUG] token reorder and comment preservation,
roland . illig <=