This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 3883 - {} indenting is driven by bad rule.
Summary: {} indenting is driven by bad rule.
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ pkuzel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-09-15 21:33 UTC by _ pkuzel
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pkuzel 1999-09-15 21:33:30 UTC
it seems that } indenting is not driven by pairing { but last line entered minus one tab position.
e.g.:
  try{
  myCodeIsBadlyInteded-forcedByMe;
} <- the pairing } is positioned here

while if I write:
  try{
      myCodeIsBadlyInteded-forcedByMe;
    } <- the pairing } is positioned here

[Mila] The indent engine works as described because of the performance reasons. It can be possibly replaced by the custom one if someone wants that. We can extend it in the future.
Comment 1 Marek Grummich 2000-07-25 09:08:59 UTC
Priority is changed to P4 (normal).
Comment 2 Miloslav Metelka 2000-11-24 14:26:59 UTC
The current indent engine does the pairing.
Comment 3 Quality Engineering 2003-06-30 18:10:09 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.