apache / apache/netbeans

Add generics angle brackets (<>) highlighting for Java

Open
#5,024 16 comments 1 reaction 0 assignees View on GitHub
Contribution welcome Java kind:feature
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

When we work with round brackets in java we can see the start and end bracket via highlighting. For example:

![Screenshot from 2021-05-27 10-33-18](https://user-images.githubusercontent.com/10261361/204365994-bb3a8e5d-cca2-4d4d-8c7f-8c5bef95ccb9.png)

I suggest to add the same functionality for angle bracket of generics, because rather often a structure can be complex and it is not seen where the bracket starts and where it ends.

For example,

`Map, Map>> coursesByStudentTypeAndTime;`

The issue was also opened in old jira: https://issues.apache.org/jira/browse/NETBEANS-5716

### Use case/motivation

_No response_

### Related issues

_No response_

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Review closed pull request #8834 first, then locate the Java editor's existing round-bracket highlighting behavior. Implement equivalent matching for nested generic angle brackets and verify that examples such as the one in the issue show matching starts and ends correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.