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

Failed parsing lookbehind expressions #27

Open
HoldYourWaffle opened this issue Aug 29, 2019 · 1 comment
Open

Failed parsing lookbehind expressions #27

HoldYourWaffle opened this issue Aug 29, 2019 · 1 comment

Comments

@HoldYourWaffle
Copy link

Looks like lookbehind-expressions are not supported (yet):

Error: Unable to use "first char" lexer optimizations:
	Failed parsing: < /(?<=FUNCTION(\s+)([a-zA-Z]\w*)(\s*)){(\\}|[^}])*}/ >
	Using the regexp-to-ast library version: 0.4.0
	Please open an issue at: https://github.com/bd82/regexp-to-ast/issues

As you can see I was told to open an issue, so here it is 😄

My pattern is:

/(?<=FUNCTION(\s+)([a-zA-Z]\w*)(\s*)){(\\}|[^}])*}/

but it happens for any kind of lookbehind expression ((?<=x)y).

@bd82
Copy link
Owner

bd82 commented Aug 29, 2019

Yeah I have not implemented that feature or other newer RegExp features.
Although I doubt it should be too complex as it is very similar to lookahead...

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

Successfully merging a pull request may close this issue.

2 participants