textmate / shellscript.tmbundle

TextMate support for ShellScript
43 stars 29 forks source link

Improve Highlighting of Nested Bracket Variables #46

Open timkite opened 6 years ago

timkite commented 6 years ago

The following variable syntax is legal, but is not highlighted correctly:

${Varname[${OtherVarName[$index]}]}

Here's an example of the current highlighting (note that it "loses" the parent variable at the first "}" encountered):

screen shot 2018-02-20 at 09 46 31

I wonder if defining a separate variable type for arrays would help?