jeff-hykin / better-shell-syntax

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

Unquoted substrings are highlighted as if they are in the string #46

Closed mattmc3 closed 1 year ago

mattmc3 commented 1 year ago

The code with a problem is:

GitHub's highlighters demo this well. def is properly uncolored because it's not in string quotes.

$ echo 'abc'def'ghi'
abcdefghi

It looks like:

def looks like it's part of the string when it's not:

Screenshot 2023-02-20 at 9 06 40 PM
jeff-hykin commented 1 year ago

If you check the tags, the middle part should be tagged as an "string.unquoted" which is technically true. So you can customize your theme to color them different from quoted strings if that's your desire.

Here's a tutorial for customizing your theme colors https://medium.com/@jeffhykin/how-to-customize-your-vs-code-text-colors-c0191155f41a

If I'm misunderstanding let me know and I'll reopen this issue