Sublime Forum

Bash syntax hightlighting error

#1

There is a problem with syntax hightlighting using “Shell Script (Bash)”. The following reproduces the error:

[code]MESSAGE="$((module load mymodule) 2>&1)"

echo “This is always highlighted yellow now, as if it is part of a string”[/code]

It seems like the second close paren does not close the $(…). Everything under the “MESSAGE” line no longer has correct syntax highlighting in SublimeText. This is working bash code.

Thanks!
ScottJ

0 Likes

#2

same thing happens with: xspec=${1:+"!*.@($1|${1^^})"} || \ so I bet the syntax highlighter for shell breaks on ‘)"’

0 Likes

#3

Is this correct? May try this as a temporary solution.

1 Like