-
Notifications
You must be signed in to change notification settings - Fork 75
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
Support passing generic type parameters to html function? #96
Comments
I'm open to it (if someone makes a PR :) |
Looking at similar issues across other extensions, one problem with the example above is that the longer generic type argument spans multiple lines. The root cause for this is a bit more of a problem, since TextMate grammars have limitations, as @sheetalkamat is familiar with:
VS Code itself somehow gets around the limitations and can do correct syntax highlighting over multiple lines, maybe with Semantic Highlighting by @aeschli and @alexdima. I also see some changes with regular expressions, which @sheetalkamat has also been maintaining: So maybe there is a way for a VS Code extension to also achieve this, by also using this Semantic Highlighting / these regular expressions. The TextMate grammar limitations have also been explored in the following SQL tagged template literals VS Code extension, but no solution has yet appeared: |
Workaround (
|
Hi @mjbvz, first of all, thanks for your effort creating this extension, very useful!
I wanted to find out if you'd be open to supporting passing TypeScript generic type parameters to the
html
function? Eg. both of:The extension currently doesn't highlight with either of these:
Code:
The text was updated successfully, but these errors were encountered: