Bug#319825: marked as done (vim-common: mishightlights valid bash code)

Debian Bug Tracking System owner at bugs.debian.org
Mon Jul 25 20:18:25 UTC 2005


Your message dated Mon, 25 Jul 2005 16:00:28 -0400
with message-id <20050725200028.GA3421 at andromeda>
and subject line Bug#319825: vim-common: mishightlights valid bash code
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 25 Jul 2005 01:41:09 +0000
>From justinpryzby at users.sourceforge.net Sun Jul 24 18:41:09 2005
Return-path: <justinpryzby at users.sourceforge.net>
Received: from janus.clarkson.edu [128.153.5.33] 
	by spohr.debian.org with smtp (Exim 3.36 1 (Debian))
	id 1Dwrxt-0004bS-00; Sun, 24 Jul 2005 18:41:09 -0700
Received: (qmail 19677 invoked by uid 510); 24 Jul 2005 21:40:38 -0400
Received: from justinpryzby at users.sourceforge.net by janus.clarkson.edu by uid 502 with qmail-scanner-1.21 
 (uvscan: v4.32.0/v4541. Clear:RC:1(128.153.28.145):. 
 Processed in 0.025991 secs); 25 Jul 2005 01:40:38 -0000
X-Qmail-Scanner-Mail-From: justinpryzby at users.sourceforge.net via janus.clarkson.edu
X-Qmail-Scanner: 1.21 (Clear:RC:1(128.153.28.145):. Processed in 0.025991 secs)
Received: from unknown (HELO andromeda) (128.153.28.145)
  by 0 with SMTP; 24 Jul 2005 21:40:38 -0400
Received: from pryzbyj by andromeda with local (Exim 3.36 #1 (Debian))
	id 1DwrxO-0001i4-00
	for <submit at bugs.debian.org>; Sun, 24 Jul 2005 21:40:38 -0400
Date: Sun, 24 Jul 2005 21:40:38 -0400
To: submit at bugs.debian.org
Subject: vim-common: mishightlights valid bash code
Message-ID: <20050725014038.GK6370 at andromeda>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
From: Justin Pryzby <justinpryzby at users.sourceforge.net>
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: vim-common
Severity: normal
Version: 6.3-071+1

vim cannot deal with the following type of bash command substitution:

  foo=$(bar)

$, ( and ) are highlighted in red, as if the code were invalid.

---------------------------------------
Received: (at 319825-done) by bugs.debian.org; 25 Jul 2005 20:01:04 +0000
>From justinpryzby at users.sourceforge.net Mon Jul 25 13:01:04 2005
Return-path: <justinpryzby at users.sourceforge.net>
Received: from janus.clarkson.edu [128.153.5.33] 
	by spohr.debian.org with smtp (Exim 3.36 1 (Debian))
	id 1Dx98K-00030i-00; Mon, 25 Jul 2005 13:01:04 -0700
Received: (qmail 13530 invoked by uid 510); 25 Jul 2005 16:00:29 -0400
Received: from justinpryzby at users.sourceforge.net by janus.clarkson.edu by uid 502 with qmail-scanner-1.21 
 (uvscan: v4.32.0/v4542. Clear:RC:1(128.153.28.145):. 
 Processed in 0.016368 secs); 25 Jul 2005 20:00:29 -0000
X-Qmail-Scanner-Mail-From: justinpryzby at users.sourceforge.net via janus.clarkson.edu
X-Qmail-Scanner: 1.21 (Clear:RC:1(128.153.28.145):. Processed in 0.016368 secs)
Received: from unknown (HELO andromeda) (128.153.28.145)
  by 0 with SMTP; 25 Jul 2005 16:00:29 -0400
Received: from pryzbyj by andromeda with local (Exim 3.36 #1 (Debian))
	id 1Dx97k-0000uw-00; Mon, 25 Jul 2005 16:00:28 -0400
Date: Mon, 25 Jul 2005 16:00:28 -0400
To: Lucas Nussbaum <lucas at lucas-nussbaum.net>
Cc: 319825-done at bugs.debian.org
Subject: Re: Bug#319825: vim-common: mishightlights valid bash code
Message-ID: <20050725200028.GA3421 at andromeda>
References: <20050725014038.GK6370 at andromeda> <20050725064507.GB5936 at blop.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050725064507.GB5936 at blop.info>
User-Agent: Mutt/1.5.9i
From: Justin Pryzby <justinpryzby at users.sourceforge.net>
Delivered-To: 319825-done at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

On Mon, Jul 25, 2005 at 08:45:07AM +0200, Lucas Nussbaum wrote:
> On Sun, Jul 24, 2005 at 09:40:38PM -0400, Justin Pryzby <justinpryzby at users.sourceforge.net> wrote:
> > Package: vim-common
> > Severity: normal
> > Version: 6.3-071+1
> > 
> > vim cannot deal with the following type of bash command substitution:
> > 
> >   foo=$(bar)
> > 
> > $, ( and ) are highlighted in red, as if the code were invalid.
> 
> It works here. The relevant autocmds are :
>     *.bash    call SetFileTypeSH("bash")
>     .kshrc*   call SetFileTypeSH("ksh")
>     *.ksh     call SetFileTypeSH("ksh")
>     *.sh      call SetFileTypeSH(getline(1))
>     *.env     call SetFileTypeSH(getline(1))
>     .tcshrc*  setf tcsh
>     *.tcsh    setf tcsh
> 	 [...]
> 
> To get bash syntax highlighting, you can :
> - use extension .bash instead of .sh
> - put a shebang #!/bin/bash at the beginning of your script
> - run manually :cal SetFileTypeSH("bash")
> 
> Please note that $() is bash-specific and won't work with most
> sh-compatible shells.
Great, thanks!
Justin



More information about the pkg-vim-maintainers mailing list