dotnet / dotnet/fsharp

Syntax highlighting fails inside for...to inside a computation expression

Open
#12,449 1 comment 0 reactions 0 assignees View on GitHub
AI-thinks-windows-only Area-VS-Editor Bug Feature Improvement Needs-Confirmation
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:
![image](https://user-images.githubusercontent.com/59654697/142777826-0e4bb40a-0110-4495-91de-501df537d83d.png)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.