Re: [PATCH 1/3] gitweb: add extensions to highlight feature
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 17, 2010, 11:17 UTC
- Message-ID
- <201012171217.24350.jnareb@gmail.com>
- In-Reply-To
- <1292538804.2511.4.camel@kheops>
On Thu, 16 Dec 2010, Sylvain Rabot wrote:
> On Thu, 2010-12-16 at 14:22 -0800, Jakub Narebski wrote: > > Sylvain Rabot <sylvain@abstraction.fr> writes:
Show 7 quoted lines
> > > # alternate extensions, see /etc/highlight/filetypes.conf
> > > 'h' => 'c',
> > > + map { $_ => 'sh' } qw(bash zsh),
> >
> > Good idea.
>
> Does ksh, csh can be highlighted as sh too ?My /etc/highlight/filetypes.conf does include only
$ext(sh)=bash
All of bash, zsh and ksh are POSIX shell (sh) compatibile, so sh syntax (which is according to my /usr/share/highlight/langDefs/sh.lang file "Bash script language definition file" ;-)) should work. csh IIRC isn't. So therefore I am not sure if csh can be highlighted correctly using sh syntax.
-- Jakub Narebski Poland