Skip to content

Comments

SemanticHighlighter support for context sensitive value keyword#9079

Merged
mbien merged 2 commits intoapache:masterfrom
mbien:value-keyword
Dec 17, 2025
Merged

SemanticHighlighter support for context sensitive value keyword#9079
mbien merged 2 commits intoapache:masterfrom
mbien:value-keyword

Conversation

@mbien
Copy link
Member

@mbien mbien commented Dec 11, 2025

works only when combined with a valhalla build of javac (e.g: uninstall nb-javac and run a NB dev build on the valhalla build, see #8994 (comment))

Thats also why there is no unit test.

The other commit is code cleanup in the semantic package.

image

@mbien mbien added this to the NB29 milestone Dec 11, 2025
@mbien mbien requested a review from lahodaj December 11, 2025 20:50
@mbien mbien added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Dec 11, 2025
Comment on lines 987 to 991
Token<?> t = firstIdentifierToken("permits");// NOI18N
if (tl != null) {
if (t != null) {
contextKeywords.add(t);
scan(permitList, null);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looked like bug

Copy link
Contributor

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only eyeballed this, but looks good. Thank you.

@mbien
Copy link
Member Author

mbien commented Dec 17, 2025

just a rebase for new dev build

@mbien
Copy link
Member Author

mbien commented Dec 17, 2025

manual test worked, added instructions under the issue #8994 (comment)

thanks for review, merging

@mbien mbien merged commit 389f722 into apache:master Dec 17, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants