You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am struggling to work out if it's possible to enable better syntax highlighting within conditionals. Sometimes this works fine, other times it all gets lost.
Take for example this line:
} else if (node.kind === ts.SyntaxKind.StringKeyword) {
Note that the top most syntax group is typescriptConditionalParen. I can't style this as a typescriptProp as it's a transparent group, so now I'm unable to style it at all. The only thing within the parens that I can style is the ===.
Is it possible to highlight typescriptProp consistently rather than losing them within conditionals (and I guess potentially other cases?).
Thanks!
Jack
The text was updated successfully, but these errors were encountered:
Hello,
I am struggling to work out if it's possible to enable better syntax highlighting within conditionals. Sometimes this works fine, other times it all gets lost.
Take for example this line:
If I use this script to figure out the syntax group and have my cursor on
StringKeyword
, it outputs this:Note that the top most syntax group is
typescriptConditionalParen
. I can't style this as atypescriptProp
as it's a transparent group, so now I'm unable to style it at all. The only thing within the parens that I can style is the===
.Is it possible to highlight
typescriptProp
consistently rather than losing them within conditionals (and I guess potentially other cases?).Thanks!
Jack
The text was updated successfully, but these errors were encountered: