matthiasblaesing commented on issue #5024:
URL: https://github.com/apache/netbeans/issues/5024#issuecomment-1775693194

   Not sure what you are seeing as a problem, but that case seems trivial:
   
   ```diff
   --- 
a/java/java.editor/src/org/netbeans/modules/editor/java/JavaBracesMatcher.java
   +++ 
b/java/java.editor/src/org/netbeans/modules/editor/java/JavaBracesMatcher.java
   @@ -50,11 +50,12 @@
     */
    public final class JavaBracesMatcher implements BracesMatcher, 
BracesMatcherFactory, BracesMatcher.ContextLocator {
    
   -    private static final char [] PAIRS = new char [] { '(', ')', '[', ']', 
'{', '}' }; //NOI18N
   +    private static final char [] PAIRS = new char [] { '(', ')', '[', ']', 
'{', '}', '<', '>' }; //NOI18N
        private static final JavaTokenId [] PAIR_TOKEN_IDS = new JavaTokenId [] 
{ 
            JavaTokenId.LPAREN, JavaTokenId.RPAREN, 
            JavaTokenId.LBRACKET, JavaTokenId.RBRACKET, 
   -        JavaTokenId.LBRACE, JavaTokenId.RBRACE
   +        JavaTokenId.LBRACE, JavaTokenId.RBRACE,
   +        JavaTokenId.LT, JavaTokenId.GT
        };
        
        private final MatcherContext context;
   ```
   
   results in (this is NetBeans colorscheme, matching braces are highlighted in 
yellow):
   
   Match from left:
   
   
![image](https://github.com/apache/netbeans/assets/2179736/e0bfcc2e-5e0a-438a-9121-668e658c2ab4)
   
   Match from right:
   
   
![image](https://github.com/apache/netbeans/assets/2179736/0fac7783-c1eb-4134-968c-37546072de5d)
   
   Jumping between the matching braces also worked.


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