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

Remove private field access from generate ns #7

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

Deraen
Copy link
Member

@Deraen Deraen commented Dec 30, 2020

Use Unicode standard files for regex categories, blocks and scripts,
and just hardcode POSIX, Java and binary regex properties.

In Java 15 categories etc. are handled with a switch case, so we can't get list of them using reflection: https://github.com/openjdk/jdk/blob/4d13bf33d4932cc210a29c4e3a68f848db18575b/src/java.base/share/classes/java/util/regex/CharPredicates.java#L267

Related #3

@Deraen Deraen requested a review from axvr December 30, 2020 17:23
Use Unicode standard files for regex categories, blocks and scripts,
and just hardcode POSIX, Java and binary regex properties.
@Deraen Deraen force-pushed the remove-generate-private-field-access branch from 4c8eb0c to ff77d5e Compare December 30, 2020 17:27
Copy link
Member

@axvr axvr left a comment

Choose a reason for hiding this comment

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

All looks good to me. Tested on both Java 11.0.9 and 15.0.1.

@axvr
Copy link
Member

axvr commented Jan 19, 2021

@Deraen, is this ready to be merged? It's been working perfectly for me.

@Deraen Deraen merged commit 555dafa into master Jan 19, 2021
@Deraen
Copy link
Member Author

Deraen commented Jan 19, 2021

Yeah I've also been using this branch myself.

@Deraen Deraen deleted the remove-generate-private-field-access branch January 19, 2021 21:15
@axvr axvr added the highlighting Affects syntax highlighting label Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
highlighting Affects syntax highlighting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix syntax generation code for Java 11+
2 participants