Skip to content

$(( breaks shell script syntax highlighting for quoted context #168750

@sparr

Description

@sparr

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.73.1
  • OS Version: Arch linux current

Steps to Reproduce:

  1. Enter the following text into a new file:
echo "$((true) )"
echo
  1. Set the language mode for the file to "Shell script"
  2. Observe that the echo on the second line, and any text you add after it before another ", is colored as a continuation of the quoted string on the first line.

Removing the space in ) ) and/or adding a space between (( avoids triggering this misbehavior.

I have confirmed through experimentation that this seems to be valid syntax in current versions of sh, bash, and zsh.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions