Skip to content

Conversation

@hamishknight
Copy link
Contributor

No description provided.

@hamishknight hamishknight force-pushed the regular-grammar-enabled branch from 00c22fd to e3d1671 Compare April 7, 2022 21:56
@shahmishal
Copy link
Member

@swift-ci build toolchain

@rintaro
Copy link
Member

rintaro commented May 11, 2022

@swift-ci build toolchain

Treat a prefix operator containing `/` the same as
the unapplied infix operator case, where we
tentatively lex. This means that we bail if there
is no closing `/` or the starting character is
invalid. This leaves binary operator containing
`/` in expression position as the last place where
we know that we definitely have a regex literal.
Previously we would only check for a starting
character of `)` when performing a tentative
lex of a regex literal. Expand this to cover the
entire range of the regex literal, ensuring to
take escapes and custom character classes into
account.
@hamishknight hamishknight force-pushed the regular-grammar-enabled branch from e604c89 to 159147a Compare May 12, 2022 10:52
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight
Copy link
Contributor Author

@swift-ci please test source compatibility

@hamishknight
Copy link
Contributor Author

@swift-ci please build toolchain

@hamishknight hamishknight deleted the regular-grammar-enabled branch July 15, 2022 15:01
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.

4 participants