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
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
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
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
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
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
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
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