Skip to content

Inconsistent regex between Live Preview and JFlex Generator #385

@siketyan

Description

@siketyan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions