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.
function test() { do { echo "test"; } while ($condition); // press ENTER here | // you will get here } I have separated this issue from issues #173937 and from issue #173906 to track better this problem and usually is not good to mentioned different cases in one issues like in the mentioned. This case covers also other examples, like foreach, where there is no {}. Other examples (| mark position, where to put new line. foreach ($a as $value) $value; | foreach ($a as $value) $value;| if (true) return false; | if (true) return false;| if (true)| etc.
Fixed in web-main
Integrated into 'main-golden', will be available in build *200910221401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/274b54513687 User: Petr Pisl <ppisl@netbeans.org> Log: issue #175118 - Wrong indendtation after do {} while