You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Silviu (JIRA)" <ji...@apache.org> on 2019/04/08 15:12:00 UTC

[jira] [Created] (NETBEANS-2376) Highlight corresponding label/loop statement for "break" and "continue".

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 &amp; 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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists