darthpsycho opened a new issue, #4489:
URL: https://github.com/apache/netbeans/issues/4489

   ### Apache NetBeans version
   
   Apache NetBeans 14
   
   ### What happened
   
   JDK15 introduced text blocks as no longer a preview feature. Text blocks 
itself works fine in NetBeans, however bracket highlighting is broken and not 
working properly as its unable to find the ending brackets and only highlights 
the first.
   
   Bracket highlighting works fine for multiline String and StringBuilder, but 
not inside JDK15 Text Block
   
   Broken Text Block Bracket Highlighting:
   
![brokenTextBlockHighlight](https://user-images.githubusercontent.com/16412839/183638281-34ea1bb8-a195-447f-96a8-68a13da58107.png)
   
   Working multiline String Bracket Highlighting
   
![workingMultilineStringHighligh](https://user-images.githubusercontent.com/16412839/183638319-ea90d923-5a5a-4d2e-9a51-737d00f7d4f2.png)
   
   Working StringBuilder Bracket Highlighting
   
![workingStringBuilderHighlight](https://user-images.githubusercontent.com/16412839/183638346-efb72537-93ae-4064-aa72-e54cdc2fb3ad.png)
   
   
   
   ### How to reproduce
   
   Create any JDK15 String text block variable using """ containing pair of 
brackets "(", ")" and click on first one. Only first one is highlighted and 
unable to find ending bracket
   
![brokenTextBlockHighlight](https://user-images.githubusercontent.com/16412839/183639135-8f926d5b-0caa-494b-94b5-6438bc9c136f.png)
   .
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   MacOS Monterey 12.4
   
   ### JDK
   
   OpenJDK 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


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