jeff-hykin / better-shell-syntax

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

String scope leaks out some lines #53

Closed alexr00 closed 1 year ago

alexr00 commented 1 year ago

The code with a problem is:

declare -A fileKeyFileMap=(["${VAR1}"]="${VAL1}" ["${VAR2}"]="${VAL2}")

logexit # log exit function

It looks like:

image

It should look like:

The string.quoted.double should not be on line 3. I pulled version 1.4.5 to make sure that this hasn't already been fixed.

Originally from @cipherdmg in https://github.com/microsoft/vscode/issues/173216#issuecomment-1465179486

jeff-hykin commented 1 year ago

temp fix v1.5.1. The full feature request of [] pattern-matching is still not handled, but should only localized miscoloring