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 183135 - wrong indentation for case statement by "break;"
Summary: wrong indentation for case statement by "break;"
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-30 01:31 UTC by Masaki Katakai
Modified: 2010-04-06 14:29 UTC (History)
1 user (show)

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 Masaki Katakai 2010-03-30 01:31:12 UTC
Product Version: NetBeans Platform Dev (Build 201003290201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: SunOS version 5.11 running on x86; UTF-8; ja_JP (nb)

I got this report from community member in Japan. I'm not sure if this issue has been already reported or not.

It seems that when typing "break;", indentation for case become wrong.

        switch ($a) {
            case 1; abc(); break;
        case 2; abc(); break;
    case 3; abc(); break;
        }

"Format" code will work properly.

        switch ($a) {
            case 1;
                abc();
                break;
            case 2;
                abc();
                break;
            case 3;
                abc();
                break;
        }
Comment 1 Petr Pisl 2010-03-31 12:59:40 UTC
Fixed in the webmain.
Comment 2 Filip Zamboj 2010-04-06 14:29:54 UTC
Product Version: NetBeans IDE Dev (Build 100406-c711d74ebbfc)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01