Commit Graph

5 Commits

Author SHA1 Message Date
Yuji Sugiura 9775585021 refactor(regular_expression): Refactor regexp-modifiers support (#11142)
When I first implemented this proposal, it was Stage 3 and the specs
were not even fixed.
But for now, this spec is in Stage 4 and has been cleared up, so I've
updated it.

In the process, I have done some refactoring.

- Shorten code by `bitflags` like `RegExpFlags`
  - This requires some lines to make `ast_tools` works
- Update readme

NOTE: The basic behavior remains unchanged.
2025-05-19 17:54:38 +09:00
leaysgur 90c786c420 feat(regular_expression)!: Support ES2025 Duplicated named capture groups (#6847)
Closes #6358

@preyneyv I know you've been working on this problem.

This is an implementation that has been dormant on my local for a while.

- All tests are passing
- However, the approach is simple but not general, so there might be some edge cases that were missed
- There's also room for improvement in terms of performance

For these reasons, it was marked as WIP for me.

I believe the test cases and other parts are usable, so feel free to fork and replace them with your implementation if you'd like.
2024-10-25 02:13:57 +00:00
Boshen d00a1f6511 chore: use dprint to format js, json and markdown 2024-09-08 13:24:58 +08:00
Boshen afe728a73a feat(parser): parse regular expression with regex parser (#4998)
Many false positives and incorrect errors. @leaysgur Enjoy 😁

Run `just conformance` to update the snapshot.
2024-08-22 03:09:55 +00:00
Boshen 8d3f61bb54 chore(oxc_regular_expression): rename crate 2024-08-20 10:59:00 +08:00