Skip to content

Adds support for swift regexes#37

Open
beelsebob wants to merge 2 commits into
roop:masterfrom
beelsebob:master
Open

Adds support for swift regexes#37
beelsebob wants to merge 2 commits into
roop:masterfrom
beelsebob:master

Conversation

@beelsebob

Copy link
Copy Markdown

does make an API change though...

.regex now accepts a native swift regex, while .nsRegex is added for the old Foundation regex option. This is because I couldn't come up with a good name for the native regex case. If you have a preferred option to not change the API, I'd happily change the name.

beelsebob added 2 commits May 6, 2026 19:07
Adds support for swift regular expressions.  Does make an API change - the regex option in the LexingRule class is renamed to nsRegex, and regex is taken over by the swift regex.  This is because I couldn’t come up with a good name for “not foundation regex”.
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 this pull request may close these issues.

1 participant