jeff-hykin / better-shell-syntax

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

Arrays preceded by an indented empty line break highlighting #36

Closed misaki-web closed 1 year ago

misaki-web commented 1 year ago

The code with a problem is:

#!/bin/bash

echo "start"

if [[ $TEST_ENV1 == "10 - 1" ]]; then
    echo "inside if"

    test_array=("Lorem ipsum" "dolor sit" "amet")
fi

echo "end"

It looks like this (theme "Default Light+"):

screenshot-bash-highlighting-bug-array-loop

It should look like this:

There's no issue if the empty line is not indented:

screenshot-bash-highlighting-bug-array-loop-2

jeff-hykin commented 1 year ago

this should also be fixed now with v1.3.3