Closed shadichy closed 1 year ago
That will depend on your theme as to why. The )
has a tag of "punctuation.definition.case-pattern" and your theme picks the color for that tag
As far as I can tell the syntax is highlighting the correct thing, but if you think there's still a problem let me know and I'll open the issue back up
punctuation.definition.case-pattern
within this extension disabled, it's white
also, this doen't highlight variables inside {} like this while the default theme does
punctuation.definition.case-pattern
within this extension disabled, it's white
The built-in VS Code syntax is an older version that I believe doesn't match/tag everything. So your theme probably doesn't know the )
is punctuation, and just colors it white.
also, this doen't highlight variables inside {} like this while the default theme does
Here's what it looks like for me with the Material theme:
And this is what it looks like with the extension disabled:
If you want to customize/tweak the colors of your current theme, take a look at a tutorial here otherwise I'd suggest trying out some different themes.
punctuation.definition.case-pattern
within this extension disabled, it's white
The built-in VS Code syntax is an older version that I believe doesn't match/tag everything. So your theme probably doesn't know the
)
is punctuation, and just colors it white.
switched to material, also set still
Ohhh now I actually think it's the bracket-pair-colorizer being confused. It thinks those )'s are part of a pair. There should be a setting for disabling bracket pair colorizing (and it can be done for a specific language)
It became obvious because I don't think that shade of red is even part of the material theme color pallet.
@jeff-hykin I noticed this issue as well. The unbalancedBracketScopes
addition seems related: https://github.com/microsoft/vscode/issues/144736
The default shellscript extension has this:
"grammars": [
{
"language": "shellscript",
"scopeName": "source.shell",
"path": "./syntaxes/shell-unix-bash.tmLanguage.json",
"balancedBracketScopes": [
"*"
],
"unbalancedBracketScopes": [
"meta.scope.case-pattern.shell"
]
}
],
Was there ever any fix for this? I've just installed this extension (to get around buggy highlighting introduced by VSC 1.76.0), and it only seems to be an issue while it's enabled.
Was there ever any fix for this? I've just installed this extension (to get around buggy highlighting introduced by VSC 1.76.0), and it only seems to be an issue while it's enabled.
same case here no idea when it will be fixed
@jeff-hykin I noticed this issue as well. The
unbalancedBracketScopes
addition seems related: microsoft/vscode#144736The default shellscript extension has this:
"grammars": [ { "language": "shellscript", "scopeName": "source.shell", "path": "./syntaxes/shell-unix-bash.tmLanguage.json", "balancedBracketScopes": [ "*" ], "unbalancedBracketScopes": [ "meta.scope.case-pattern.shell" ] } ],
Alright, I've added something similar to see if that fixes the bracket pair issue
also, the code following the )
is not being highlighted properly
why is the ")" red?