Skip to content

Small fixes for regular expression literals. #873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2022

Conversation

DougGregor
Copy link
Member

Two small fixes for regular expression literals:

  • A regular expression literal cannot end in a space or a tab
  • A regular expression literal might show up as the name of a function, where it should be an operator. Treat it as an operator.

Two small fixes for regular expression literals:
* A regular expression literal cannot end in a space or a tab
* A regular expression literal might show up as the name of a function,
where it should be an operator. Treat it as an operator.
@DougGregor DougGregor requested a review from ahoppen as a code owner October 1, 2022 00:27
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 6944b43 into swiftlang:main Oct 1, 2022
@DougGregor DougGregor deleted the regex-literal-parsing branch October 1, 2022 02:57
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