Syntax highlighting fails inside for...to inside a computation expression
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 131
Description
I managed to find bug report #2680 which seems to describe the exact problem I'm having and was marked as closed in 2017. Whatever the cause, it appears to have come back, so I'm creating a new issue.
I can reproduce the problem in the latest version of both Visual Studio Community 2022 and 2019 (17.0.1, 16.11.7). Here is a screenshot of the same code from the other bug report in 2022:

I have noticed that the comments in the code actually seem to get highlighted correctly for a second while the project loads, but then change to the state shown in the screenshot.
Contributor guide
Assessment
This issue has not been assessed yet.