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

Syntax highlighting support for embedded C# snippets in daf files #10

Open
bjorhn opened this issue Apr 8, 2021 · 0 comments
Open

Syntax highlighting support for embedded C# snippets in daf files #10

bjorhn opened this issue Apr 8, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@bjorhn
Copy link
Member

bjorhn commented Apr 8, 2021

Embedded code blocks need to finish evaluating their own code blocks (such as { } in C#) before control is handed back to the parent block. This results in broken syntax highlighting for the rest of the document when embedded C# code doesn't close all brackets it opens before the T4 end tag (#>). For more information, see microsoft/vscode#20488

2 possible solutions: Write our own, custom C# highlighter that takes #> into account for each code block, or wait and see if the VS Code team fixes the issue linked above.

@bjorhn bjorhn added the enhancement New feature or request label Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant