Skip to content

Conversation

hamishknight
Copy link
Contributor

#41767, but implemented by re-lexing when we encounter a / in the parser. Also implements the rule where a regex may not start with space, tab, ), or ,.

@hamishknight
Copy link
Contributor Author

cc @rintaro, still needs a way of delaying lexing diagnostics, but otherwise seems to work well

@hamishknight
Copy link
Contributor Author

@swift-ci please test source compatibility

Try to lex regex literals with `/.../` delimiters.
Loudly error if `-enable-experimental-string-processing`
is not used. This allows us to easily check for
source compatibility conficts.
@hamishknight hamishknight force-pushed the regular-grammar-in-parser branch from b6934d3 to 20d41f9 Compare March 17, 2022 13:53
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight
Copy link
Contributor Author

This seems to be the way to go, continuing over on #41767.

@hamishknight hamishknight deleted the regular-grammar-in-parser branch March 30, 2022 11:26
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