Navigation Menu

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

Java: Fixed record false positives #3348

Merged
merged 1 commit into from Mar 4, 2022

Conversation

RunDevelopment
Copy link
Member

This fixes #3345.

I did this by making record more contextual. I initially wanted to require a class name after the record keyword, but this didn't work because class names are matched before keywords, so the regex couldn't see the class name. So I disallowed any form of punctuations or operators after a record keyword instead, which works pretty reliably.

@github-actions
Copy link

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of +28 B (+2.7%).

file master pull size diff % diff
components/prism-java.min.js 1.03 KB 1.06 KB +28 B +2.7%

Generated by 🚫 dangerJS against 8277272

@RunDevelopment RunDevelopment merged commit 3bd8fdb into PrismJS:master Mar 4, 2022
@RunDevelopment RunDevelopment deleted the issue3345 branch March 4, 2022 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

java keyword "record" highlight incorrectly
1 participant