Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maffe opened this issue Feb 28, 2023 · 0 comments
Labels
Contribution welcome An issue or feature not currently being worked on, but a contribution would be welcomed! Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) JavaDoc [ci] enable java/javadoc tests and build-javadoc target kind:bug Bug report or fix

Comments

@maffe
Copy link

maffe commented Feb 28, 2023

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 #5180 (comment), 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

@maffe maffe added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Feb 28, 2023
@mbien mbien added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) Contribution welcome An issue or feature not currently being worked on, but a contribution would be welcomed! JavaDoc [ci] enable java/javadoc tests and build-javadoc target and removed needs:triage Requires attention from one of the committers labels Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contribution welcome An issue or feature not currently being worked on, but a contribution would be welcomed! Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) JavaDoc [ci] enable java/javadoc tests and build-javadoc target kind:bug Bug report or fix
Projects
None yet
Development

No branches or pull requests

2 participants