jeff-hykin / better-shell-syntax

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

Comment highlighting wrong if following unquoted text and tab #59

Closed bland328 closed 1 year ago

bland328 commented 1 year ago

The code with a problem is:

#!/bin/bash
echo abc    # incorrect (comment preceded by unquoted arg and tab)
echo "abc"  # correct (comment preceded by quoted arg and tab)

It looks like:

Screenshot 2023-03-28 at 6 14 30 PM

It should look like:

The first comment should look like the second.

bland328 commented 1 year ago

This was fixed by installing the better-shell-syntax extension, and not relying on what's built into VS Code 1.76.2 (see https://github.com/jeff-hykin/better-shell-syntax/issues/57#issuecomment-1487746260).