apache / apache/netbeans

Editor does not highlight the whole @summary Javadoc tag when it contains a dot

Open
#5,580 0 comments 0 reactions 0 assignees View on GitHub
Contribution welcome Java JavaDoc kind:bug
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 17

### What happened

#5180 added support for the `@summary` Javadoc tag, but as you can see in the screenshots in https://github.com/apache/netbeans/pull/5180#issuecomment-1372754023, the highlighting of the summary still ends at the first dot.

### How to reproduce

In the following examples, the whole first sentence in each Javadoc comment should be bold. This does not work for the last example.

```
/**
* This sentence should be highlighted (bold). But not this one.
*/
public void foo() {
}

/**
* This sentence should be highlighted, e. g. bold. But not this
* one.
*/
public void bar() {
}

/**
* {@summary This sentence should be highlighted, e. g. bold.} But not this
* one.
*/
public void baz() {
}
```

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

Windows 10 64 Bit

### JDK

19

### Apache NetBeans packaging

Apache NetBeans binary zip

### Anything else

See https://bugs.java.com/view_bug.do?bug_id=JDK-8173425

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

No

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the NetBeans editor using the `@summary` example with “e. g.” and compare it with the working examples. Read the support added in pull request #5180 and the linked JDK-8173425 report; done means the whole first sentence is bold while the following sentence is not.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.