jeff-hykin / better-shell-syntax

💾 📦 ♻️ An improvement to the shell syntax for VS Code
MIT License
50 stars 4 forks source link

Syntax highlighting issue with "case" statement inside command substitution #72

Closed friendly-bits closed 3 months ago

friendly-bits commented 6 months ago

The code with a problem is:

#!/bin/sh

# The following line is valid shell code but everything after it is highlighted as a quote
test="$( case a in b ) printf '%s ' c; esac )"

# for example, this comment is highlighted as a quote

It looks like:

image

It should look like:

Should not highlight everything after it as a quote.

jeff-hykin commented 3 months ago

redid the whole case syntax matching system, so this should be fixed in 1.7.0