tmysik commented on code in PR #9023:
URL: https://github.com/apache/netbeans/pull/9023#discussion_r2599724833


##########
php/php.editor/src/org/netbeans/modules/php/editor/PHPBracesMatcher.java:
##########
@@ -109,7 +109,10 @@ public PHPBracesMatcher(MatcherContext context) {
                     return new int [] {ts.offset(), ts.offset() + 
token.length()};
                 } else if (LexUtilities.textEquals(token.text(), ':')) {
                     do {
-                        ts.movePrevious();
+                        if ( !ts.movePrevious()) {

Review Comment:
   ```suggestion
                           if (!ts.movePrevious()) {
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
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

Reply via email to