Skip to content

feat(regular_expression): add Unicode 17.0 script properties#18140

Merged
graphite-app[bot] merged 1 commit intomainfrom
feat/unicode-17-script-properties
Jan 17, 2026
Merged

feat(regular_expression): add Unicode 17.0 script properties#18140
graphite-app[bot] merged 1 commit intomainfrom
feat/unicode-17-script-properties

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Jan 17, 2026

Summary

Add support for 4 new scripts introduced in Unicode 17.0:

  • Beria_Erfe (Berf)
  • Sidetic (Sidt)
  • Tai_Yo (Tayo)
  • Tolong_Siki (Tols)

Test plan

  • 8 parser_test262 tests now pass (from 46547 → 46555 positive passed)
  • 1 minifier_node_compat test now passes (from 930 → 931 positive passed)
  • 8 semantic_test262 tests now pass (from 44911 → 44919 positive passed)
  • cargo test -p oxc_regular_expression passes

🤖 Generated with Claude Code

@Boshen Boshen requested a review from leaysgur as a code owner January 17, 2026 16:36
Copilot AI review requested due to automatic review settings January 17, 2026 16:36
@github-actions github-actions bot added the C-enhancement Category - New feature or request label Jan 17, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for 4 new Unicode 17.0 script properties to the regular expression parser. The implementation enables recognition of these scripts in regex Unicode property escapes, fixing test failures in the Test262 suite.

Changes:

  • Added 4 new Unicode 17.0 script properties: Beria_Erfe (Berf), Sidetic (Sidt), Tai_Yo (Tayo), and Tolong_Siki (Tols)
  • Improved test coverage with 8 additional parser_test262 tests passing, 8 semantic_test262 tests passing, and 1 minifier_node_compat test passing

Reviewed changes

Copilot reviewed 1 out of 4 changed files in this pull request and generated no comments.

File Description
crates/oxc_regular_expression/src/parser/pattern_parser/unicode_property.rs Added 4 new Unicode 17.0 script properties to SC_PROPERTY_VALUES in alphabetically correct positions
tasks/coverage/snapshots/parser_test262.snap Updated to reflect 8 additional passing tests (46547 → 46555)
tasks/coverage/snapshots/semantic_test262.snap Updated to reflect 8 additional passing tests (44911 → 44919)
tasks/coverage/snapshots/minifier_node_compat.snap Updated to reflect 1 additional passing test (930 → 931)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 17, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing feat/unicode-17-script-properties (bab8c79) with main (92e27b4)

Summary

✅ 42 untouched benchmarks
⏩ 3 skipped benchmarks1

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Jan 17, 2026
Copy link
Member Author

Boshen commented Jan 17, 2026

Merge activity

## Summary

Add support for 4 new scripts introduced in Unicode 17.0:
- `Beria_Erfe` (`Berf`)
- `Sidetic` (`Sidt`)
- `Tai_Yo` (`Tayo`)
- `Tolong_Siki` (`Tols`)

## Test plan

- [x] 8 parser_test262 tests now pass (from 46547 → 46555 positive passed)
- [x] 1 minifier_node_compat test now passes (from 930 → 931 positive passed)
- [x] 8 semantic_test262 tests now pass (from 44911 → 44919 positive passed)
- [x] `cargo test -p oxc_regular_expression` passes

🤖 Generated with [Claude Code](https://claude.ai/code)
@graphite-app graphite-app bot force-pushed the feat/unicode-17-script-properties branch from bab8c79 to 830b757 Compare January 17, 2026 16:47
@graphite-app graphite-app bot merged commit 830b757 into main Jan 17, 2026
21 checks passed
@graphite-app graphite-app bot deleted the feat/unicode-17-script-properties branch January 17, 2026 16:52
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants