Unicode RL1.5 support: Implement Case-Insensitive Matching Mode - #151
Merged
Conversation
yuuki14202028
force-pushed
the
feature/140-loose
branch
from
December 28, 2025 13:57
eb09807 to
a8f8bae
Compare
pandaman64
requested changes
Dec 29, 2025
pandaman64
left a comment
Owner
There was a problem hiding this comment.
ありがとうございます!
まだドラフトですがいくつかコメントしました。
…ng data [skip ci]
yuuki14202028
force-pushed
the
feature/140-loose
branch
from
January 3, 2026 15:05
2c59098 to
1cfae0c
Compare
Owner
|
レビュー遅れます。すいません |
pandaman64
reviewed
Jan 10, 2026
pandaman64
reviewed
Jan 10, 2026
pandaman64
requested changes
Jan 24, 2026
pandaman64
marked this pull request as ready for review
February 22, 2026 08:16
pandaman64
approved these changes
Feb 22, 2026
pandaman64
left a comment
Owner
There was a problem hiding this comment.
遅くなりましたが、マージしようと思います。コントリビューションありがとうございました!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements case-insensitive matching support using the
(?i)inline flag modifier, addressing #140.Changes
(?i)and(?-i)flag modifier parsing inRegex/Syntax/Parser/Basic.leanAst.flagsnode to represent inline flag modifiers in the ASTAst.toRegexAuxfrom index-based to state-based transformation usingToRegexStateto track both group index and case-insensitivity flagRegex/Unicode/CaseFold.leanimplementing Unicode Simple Case Folding (status C+S from UCD CaseFolding.txt)getCaseFoldEquivCharsto generate character equivalence classes for case-insensitive matchingregex/data/Implementation Notes
(?i)abecomesa|A)(?i)enables and(?-i)disables case-insensitivity for subsequent patternsTodo
(?i)and(?-i)syntax inParser/Test.lean(?i:abc))caseInsensitiveoption toRegex.parseandRegex.parse!methodscorrectness/proofs to accommodateAst.flagsandToRegexStatechanges(?i)[a-z])