Shell script syntax highlighting gets confused when using dict with square brackets in key name #202566
Labels
grammar
Syntax highlighting grammar
upstream-issue-linked
This is an upstream issue that has been reported upstream
Type: Bug
Create a new file in VSCode and add the following content:
On line 4, the syntax highlighter appears to understand that the code is setting a value of the
a
dict key named"[]"
tox
.On line 5, the syntax highlighter gets confused: the code is getting a value of the
a
dict key named"[]"
, but instead of rendering the entire key name as a value, it appears to believe the key name ends at the closing square bracket in the key name (i.e. key name is"[
). This also means that the closing double quote in the key name is considered to be an opening quote for a string, causing the remainder of the line (and subsequent lines) to be incorrectly shown as part of that string.I've left out system information and extensions because they should be irrelevant.
VS Code version: Code 1.85.1 (0ee08df, 2023-12-13T09:49:37.021Z)
OS version: Windows_NT x64 10.0.22000
Modes:
A/B Experiments
The text was updated successfully, but these errors were encountered: