Skip to content

[🍒][YAMLParser] Add multi-line literal folding support #4099

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

Conversation

HassanElDesouky
Copy link

Cherry-picking a commit in the YAML parser from next

Last year I was working at Swift to add support for Localization of Compiler Diagnostic Messages. We are currently using YAML as the new diagnostic format. The LLVM::YAMLParser didn't have a support for multiline string literal folding and it's crucial to have that for the diagnostic message to help us keep up with the 80 columns rule. Therefore, I decided to add a multiline string literal folding support to the YAML parser.
Patch By: @HassanElDesouky (Hassan ElDesouky)

Differential Revision: https://reviews.llvm.org/D102590

Last year I was working at Swift to add support for [Localization of Compiler Diagnostic Messages](https://forums.swift.org/t/localization-of-compiler-diagnostic-messages/36412/41). We are currently using YAML as the new diagnostic format. The LLVM::YAMLParser didn't have a support for multiline string literal folding and it's crucial to have that for the diagnostic message to help us keep up with the 80 columns rule. Therefore, I decided to add a multiline string literal folding support to the YAML parser.

Patch By: @HassanElDesouky (Hassan ElDesouky)

Differential Revision: https://reviews.llvm.org/D102590
@HassanElDesouky
Copy link
Author

@JDevlieghere can you please run tests?

@JDevlieghere
Copy link

@swift-ci please test

@HassanElDesouky
Copy link
Author

@adrian-prantl @JDevlieghere Can we get this merged? Thank you!

@JDevlieghere JDevlieghere merged commit f0f9cdb into swiftlang:stable/20211026 Mar 23, 2022
@HassanElDesouky HassanElDesouky deleted the pick-yamlparser branch March 23, 2022 05: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.

3 participants