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 168908 - wrong new line indent after the 'default' keyword
Summary: wrong new line indent after the 'default' keyword
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2009-07-21 16:38 UTC by Filip Zamboj
Modified: 2009-07-23 07:51 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 Filip Zamboj 2009-07-21 16:38:25 UTC
Product Version: NetBeans IDE Dev (Build 2009-07-20_15-04-14 )
Java: 1.5.0_18-ea; Java HotSpot(TM) 64-Bit Server VM 1.5.0_18-ea-b01
if you press enter after default in following snippet you end up with carret aligned on the same level as keyword
default is. it should work as after case. 
switch($key) {
                        case 'id':  
                            $value = ' smallint(6) '; 
                            break;
                        case 'count':
                            $value = ' bigint(21) '; 
                            break; 
                        case 'bucket':
                            $value = ' bigint(21) '; 
                            break; 
                        default: | press enter 
                        | you end up here
Comment 1 Tomasz Slota 2009-07-21 16:51:37 UTC
confirmed
Comment 2 Tomasz Slota 2009-07-22 13:38:05 UTC
Fixed & unit tested

http://hg.netbeans.org/web-main/rev/5b19a0399dbe
Comment 3 Quality Engineering 2009-07-23 07:51:34 UTC
Integrated into 'main-golden', will be available in build *200907230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5b19a0399dbe
User: Tomasz Slota <tslota@netbeans.org>
Log: #168908: wrong new line indent after the 'default' keyword