jeff-hykin / better-shell-syntax

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

Inconsistency in detecting unquoted args within case statements according to whether or not a command is negated. #51

Closed alexr00 closed 1 year ago

alexr00 commented 1 year ago

The code with a problem is:

case "${1}" in
    0)  ls -la
        ;;
    1)  ! ls -la

It looks like:

image

It should look like:

I would expect -la to have the same scopes in both places it's used.

Originall from @frypf in https://github.com/microsoft/vscode/issues/176190#issuecomment-1459706171

jeff-hykin commented 1 year ago

duplicate of #41 (recently renamed to be more clear)