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

Inconsistent regex between Live Preview and JFlex Generator #385

Open
siketyan opened this issue Nov 18, 2024 · 0 comments
Open

Inconsistent regex between Live Preview and JFlex Generator #385

siketyan opened this issue Nov 18, 2024 · 0 comments

Comments

@siketyan
Copy link

Regular expressions are incosistent between Live Preview and JFlex Generator.
Especially some Unicode character classes are not supported in Live Preview.

For example:

IDENT = 'regexp:[$_\p{ID_Start}][$\p{ID_Continue}]*'

IDE says it's an unknown character category.

image

It's not recognised on Live Preview, annotating there's a syntax error.

image

However, generating lexer (from generated flex file from the bnf) completes successfully.

image

The regex works in the plugin as well!

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant