jeff-hykin / better-shell-syntax

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

Syntax highlighting bug with '()' inside a quote inside a 'case' statement #75

Closed friendly-bits closed 3 months ago

friendly-bits commented 5 months ago

The code with a problem is:

#!/bin/sh

case a in
    b) echo "wrongcolors(): this breaks highlighting"
esac
echo "this is highlighted incorrectly"
# until the " character is encountered
echo "now highlighting is correct again"

It looks like:

image

The '()' characters sequence inside a quoted text inside a 'case' statement triggers the issue.