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

Prisma regression with JS engine #868

Closed
3 of 5 tasks
slevithan opened this issue Dec 17, 2024 · 2 comments
Closed
3 of 5 tasks

Prisma regression with JS engine #868

slevithan opened this issue Dec 17, 2024 · 2 comments

Comments

@slevithan
Copy link
Collaborator

Validations

Describe the bug

Prisma just regressed with the JS engine (moving from supported to unsupported), and is throwing "Error: Quantifier requires a repeatable token" via the report-engine-js script. Looks like the cause is this recent addition from commit shikijs/textmate-grammars-themes@f500671 (upstream PR: prisma/language-tools#1806).

Looks like the addition to the Prisma grammar is meant to be treated as a literal text search (since */ is not a valid regex pattern). Should the JS engine be handling this block as literal text searches rather than passing it to the regex engine as regex patterns?

Reproduction

pnpm run report-engine-js

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@antfu
Copy link
Member

antfu commented Dec 18, 2024

I am curious how Oniguruma handles this. To me this looks like a mistake in their grammar where they should escape it properly

@slevithan
Copy link
Collaborator Author

slevithan commented Dec 18, 2024

You're right. They've now fixed it in prisma/language-tools#1807.

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

2 participants