Hi,

On Tue, Jul 01, 2008 at 11:29:52AM -0400, James Vega wrote:
> On Fri, Jun 13, 2008 at 03:14:38PM +0200, Stephan Beyer wrote:
> > "for" and "if" (and others) highlight as bash keywords
> > even if in such a case:
> >     git-for-each-ref
> > or
> >     git for-each-ref
> > 
> > The \<for\> matching seems to be not sufficient here.
> 
> Indeed. I'll talk to upstream about a possible solution for this.

Thanks.

> > PS: Btw, it seems that "while" does not highlight at all.
> 
> This is likely because you haven't specified the default shell flavor
> that you want sh.vim to highlight as.  This means that it is
> highlighting as the shell flavor it detects you using via the filename
> or shebang line -- defaulting to Bourne if there's no definite
> indication otherwise.

And Bourne does not have "while"? Eh?
"while" is defined in POSIX:
--
 While Loop

The while loop continuously will execute one compound-list as long
as another compound-list has a zero exit status.

The format of the while loop is as follows:

        while compound-list-1
        do
               compound-list-2
        done

The compound-list-1 will be executed, and if it has a non-zero exit
status, the while command will complete. Otherwise, the compound-list-2
will be executed, and the process will repeat.

Exit Status: The exit status of the while loop will be the exit status of
the last compound-list-2 executed, or zero if none was executed.
--

> I'd suggest either using "#!/bin/bash" if you intend to be coding
> towards bash so that sh.vim can detect that you are using bash.  You can
> also specify a default sh-syntax in your ~/.vimrc as described in the
> help (":help sh.vim" and then read the first few paragraphs).

Ok, thanks.

Regards,
  Stephan

-- 
Stephan Beyer <[EMAIL PROTECTED]>, PGP 0x6EDDD207FCC5040F

Attachment: signature.asc
Description: Digital signature

Reply via email to