[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.imp] Toggle comment behavior in LPG editor
|
Here's a minor fit'n'finish item I came across in the LPG source editor.
In the editor, the "Toggle comment" action (Ctrl+/) adds LPG comments in
a way that is kind of ugly. Let's say you have a rule like this:
col_expr_cl ::=
col_expr_spec
| col_expr_cl , col_expr_spec
The toggle comment action does this:
-- col_expr_cl ::=
-- col_expr_spec
-- | col_expr_cl , col_expr_spec
The equivalent action in the Java editor works a little differently. If
you toggle comments on this:
if (uniqueOpt != null) {
index.setUnique(true);
}
you get this:
// if (uniqueOpt != null) {
// index.setUnique(true);
// }
which I think makes it easier to spot sections of code that are
commented out.