Skip to content

Swift: escape path literals for ExpressionParser #6763

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
May 3, 2023

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented May 3, 2023

When emitting a path literal into the template for the expression evaluation, ensure that we properly escape the native path spelling as it may contain \ on Windows which fails to lex in the Swift frontend, resulting in failures. This enables partial expression evaluation for Windows (potentially sufficiently complete for basic po usage).

@compnerd
Copy link
Member Author

compnerd commented May 3, 2023

@compnerd
Copy link
Member Author

compnerd commented May 3, 2023

@swift-ci please test

When emitting a path literal into the template for the expression
evaluation, ensure that we properly escape the native path spelling as
it may contain `\` on Windows which fails to lex in the Swift frontend,
resulting in failures.  This enables partial expression evaluation for
Windows (potentially sufficiently complete for basic `po` usage).
@compnerd
Copy link
Member Author

compnerd commented May 3, 2023

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented May 3, 2023

@swift-ci please test Windows platform

@compnerd compnerd merged commit 932d7db into swiftlang:swift/release/5.9 May 3, 2023
@compnerd compnerd deleted the expression branch May 3, 2023 20:40
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.

2 participants