bash highlighting problem...

2011-12-08 Thread Linda W
In the code below, two of the right brackets , a square ']' bracket on line 15 (2nd one from right) , and a curly one on line 34 (only bracket on line) are hilighted in red indicating no match... but putting your cursor over them shows its matching pair (and the program works fine as it is...s

Re: bash highlighting problem...

2011-12-08 Thread Reid Thompson
On 12/8/2011 6:27 PM, Linda W wrote: In the code below, two of the right brackets , a square ']' bracket on line 15 (2nd one from right) , and a curly one on line 34 (only bracket on line) are hilighted in red indicating no match... but putting your cursor over them shows its matching pair (a

Re: bash highlighting problem...

2011-12-08 Thread Taylor Hedberg
You are using some unusual bash syntax that I've personally never seen before, and doesn't appear to be documented in the bash(1) man page. >echo $[offset+${diffs[$[MaxLevel-level]]}] You are using `$[...]` to do arithmetic expansion, but this is not the documented syntax for arithmetic exp

Re: bash highlighting problem...

2011-12-09 Thread Linda W
Taylor Hedberg wrote: You are using some unusual bash syntax that I've personally never seen before, and doesn't appear to be documented in the bash(1) man page. echo $[offset+${diffs[$[MaxLevel-level]]}] You are using `$[...]` to do arithmetic expansion, but this is not the

Re: bash highlighting problem...

2011-12-09 Thread Taylor Hedberg
Linda W, Fri 2011-12-09 @ 02:46:15-0800: > As for the red flagging... > > I thought it was for syntax errors? since it isn't a syntax error, > but merely an older standard, shouldn't > it not be flagged as illegal? Yeah, it should probably be accepted as valid syntax by Vim despite its deprecat

Re: bash highlighting problem...

2011-12-09 Thread Charles Campbell
Taylor Hedberg wrote: Linda W, Fri 2011-12-09 @ 02:46:15-0800: As for the red flagging... I thought it was for syntax errors? since it isn't a syntax error, but merely an older standard, shouldn't it not be flagged as illegal? Yeah, it should probably be accepted as valid syntax by

Re: bash highlighting problem...

2011-12-10 Thread Linda W
Taylor Hedberg wrote: Linda W, Fri 2011-12-09 @ 02:46:15-0800: As for the red flagging... I thought it was for syntax errors? since it isn't a syntax error, but merely an older standard, shouldn't it not be flagged as illegal? Yeah, it should probably be accepted as valid syntax

Re: bash highlighting problem...

2011-12-14 Thread Linda W
Charles Campbell wrote: I think deprecated syntax should be flagged. --- I would agree -- could you find where/when it was deprecated? I remember seeing more commonly back maybe 10-15 years ago, but I don't recall seeing any specific deprecation notice. The (()), I think was new and i