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

F# computation expressions are not highlighted #1459

Closed
mikhailshilkov opened this issue Jul 3, 2018 · 4 comments · Fixed by #1573
Closed

F# computation expressions are not highlighted #1459

mikhailshilkov opened this issue Jul 3, 2018 · 4 comments · Fixed by #1573

Comments

@mikhailshilkov
Copy link

F# computation expressions are not highlighted (async in this example):

image

Desired result (VS Code screenshot):

image

@mAAdhaTTah
Copy link
Member

I think for this one, just adding async as a keyword in F# should suffice. I don't think I would highlight the {} the way VSCode does.

@mikhailshilkov
Copy link
Author

It would help for async, but that can actually be any literal:

image

@mAAdhaTTah
Copy link
Member

mAAdhaTTah commented Jul 3, 2018

What other keywords can go there? I'm not entirely sure we can handle this in a generic way with regexes.

To put it more generically, what's the grammar for computation expressions?

@mikhailshilkov
Copy link
Author

I can be any valid F# literal, because they are also user-defined.

Interestingly, VS Code does hightlight async, task, seq and maybe, but doesn't highlight some others.

Visual Studio highlights anything:

image

@Golmote Golmote added enhancement and removed bug labels Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants