Skip to content
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

Fix parsing format specifiers and refactor #14685

Merged
merged 6 commits into from
Feb 16, 2023

Conversation

abonie
Copy link
Member

@abonie abonie commented Feb 2, 2023

First commit is just some refactoring of CheckFormatStrings.fs, since it was pretty hard to read. I recommend reviewing it separately :)

The rest fixes: #14681

@abonie abonie force-pushed the refactor-format-parsing-fix-14681 branch 3 times, most recently from c86ab7d to 06e4d56 Compare February 6, 2023 14:28
@abonie abonie force-pushed the refactor-format-parsing-fix-14681 branch 3 times, most recently from e2fdfad to 36ff149 Compare February 10, 2023 18:54
@abonie abonie marked this pull request as ready for review February 10, 2023 18:54
@abonie abonie requested a review from a team as a code owner February 10, 2023 18:54
@abonie abonie force-pushed the refactor-format-parsing-fix-14681 branch 6 times, most recently from f8e751a to 6cbff6b Compare February 13, 2023 13:56
@abonie abonie force-pushed the refactor-format-parsing-fix-14681 branch 3 times, most recently from 9944446 to b623ab3 Compare February 14, 2023 19:39
@abonie abonie marked this pull request as draft February 15, 2023 10:47
@abonie abonie force-pushed the refactor-format-parsing-fix-14681 branch 2 times, most recently from 5cf1d4b to ee7ea55 Compare February 15, 2023 15:12
@abonie abonie marked this pull request as ready for review February 15, 2023 15:13
@abonie abonie force-pushed the refactor-format-parsing-fix-14681 branch from ee7ea55 to d9c692b Compare February 16, 2023 10:20
@abonie abonie force-pushed the refactor-format-parsing-fix-14681 branch from d9c692b to c330a21 Compare February 16, 2023 16:01
@abonie abonie merged commit fac388c into dotnet:main Feb 16, 2023
KevinRansom added a commit to KevinRansom/fsharp that referenced this pull request Feb 20, 2023
KevinRansom added a commit to KevinRansom/fsharp that referenced this pull request Feb 20, 2023
kant2002 pushed a commit to kant2002/fsharp that referenced this pull request Apr 1, 2023
* Refactor, extract closures as separate functions

* Add unit test

* Fix the issue with format specifiers

Change parsing format specifiers so that it first checks whether it sees
escaped `%` before it starts parsing flags/width/precision.

* Restore previous behavior but add a warning

* Fix editor test

* Fix hardcoded path in unit test

---------

Co-authored-by: Adam Boniecki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
4 participants