Silviu created NETBEANS-2376:
--------------------------------
Summary: Highlight corresponding label/loop statement for "break"
and "continue".
Key: NETBEANS-2376
URL: https://issues.apache.org/jira/browse/NETBEANS-2376
Project: NetBeans
Issue Type: Improvement
Components: editor - Hints & Annotations
Affects Versions: 11.0
Reporter: Silviu
In a similar manner as with brackets highlighting (place the cursor on a
bracket, the corresponding one will be highlighted), it would be useful to
highlight the matching label/loop for "break" and "continue" statements.
Take for example this (poorly written) PHP code:
{{for ($i = 0; $i < 10; $i++) {}}
{{ for ($j = 0; $j < 10; $j++) {}}
{{ }}
{{ if ($i + $j == 10) {}}
{{ continue;}}
{{ }}}
{{ }}
{{ if ($j % 2) {}}
{{ continue(2);}}
{{ }}}
{{ }}
{{ echo "$i + $j", PHP_EOL;}}
{{ }}}
{{}}}
It would be useful when highlighting each "continue" statement to visually see
which loop block it references. Same with "break".
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists