Brace Highlighting Functionality Error. Need Guidance #6497
TheMarvelFan
started this conversation in
General
Replies: 1 comment 3 replies
-
I guess the problem here is that those diamond characters are part of the generic impl of List and ArrayList. You didn't import the corresponding packages. Try to add the imports and you will see the correct color matching. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I recently started contributing to open source, and decided that I take my first issue as #5024 . I added the support for angle brackets in various places and files where I thought it was nacessary. To test my functionality I built the project using Ant, and upon running, there is some error in the code, or maybe I am missing something in the algorithm. When I type the following line in the editor, instead of highlighting the open and close angle brackets (like it does braces), it gives me a red highlight on only one of the angle brackets, which is the one i kept my caret on:
List<Integer> al = new ArrayList<>();
The following are images for reference:
The way it is working:
The way it should work:
(should have the same highlighting as the parentheses)
If you can help, please reply so we can talk about implementation details.
Beta Was this translation helpful? Give feedback.
All reactions