On 2011-08-10, Linda W wrote:
> When I have the construct, in 4.1:
> 
> 
>  1 #!/bin/bash
>  2 
> 30 
> 31 # trace control for subs
> 32 declare -ix Allow_Trace=$(((
> 33                         _D_LowLevel   |
> 34                         _D_Provides   |
> 35                         _D_ 
> 36                       )))
> 37 
> 38 declare -ix Trace_off=$(((
> 39                           _D_
> 40                       )))
> 41 
> 42     # for setting a local '_Debug' flag in a routine
> 43 declare -ix Debug=$(((
> 44                       _D_
> 45                   )))
> 46 
> 47 
> 907 # vim: ts=2 sw=2 fdm=marker nofen
>      
> 
> 
> The syntax highligher doesn't like my ) brace.

That's a parenthesis.  A brace is one of these thingies: }.

> If I put a space after $( and before th final ), then the error goes 
> away, but it changes
> the semantics of the statment (one does an arith cal, and reurns value, 
> but with spaces,
> it does the arith and returns the status of the of wheither or not the 
> 'calc' returned 0 (fail)
> or 1(pass).
> 
> For hosethat want to complain about HTML, bing used on vim llist -- - 
> just ignore the post..

Your message arrived in my inbox as pure text/plain--no HTML
anywhere in it.

> Is this fixable???

Yes, depending on what you think is "fixed".

With the $VIMRUNTIME/syntax/sh.vim that comes with vim 7.3.189, I
see the error.  With a newer syntax/sh.vim, however, I see different
highlighting and no error.  I don't remember if this syntax/sh.vim
was posted to the vim_use or vim_dev list or if it was posted as a
script to vim.sf.net.  The header is

    " Vim syntax file
    " Language:     POSIX-compliant shell script
    " Maintainer:   Radek Nadstawny <[email protected]>
    " Last Change:  2011 May 25

With the new syntax file, the outer two sets of parentheses are
highlighted as shExpansion and the inner set is highlighted as
shArithmeticOperator.

Regards,
Gary

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to