git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Sylvain RabotNext: Sylvain Rabot
Message 5 of 12 in “minor gitweb modifications”
  1. 0/3 minor gitweb modificationsSylvain Rabot, Dec 16, 2010
  2. 1/3 gitweb: add extensions to highlight featureSylvain Rabot, Dec 16, 2010
  3. Jakub NarebskiDec 16, 2010
  4. Sylvain RabotDec 16, 2010
  5. Jakub NarebskiDec 17, 2010
  6. 2/3 gitweb: decorate a bit more remotesSylvain Rabot, Dec 16, 2010
  7. Jakub NarebskiDec 16, 2010
  8. Drew NorthupDec 20, 2010
  9. 3/3 gitweb: remove test when closing file descriptorSylvain Rabot, Dec 16, 2010
  10. Jakub NarebskiDec 16, 2010
  11. Sylvain RabotDec 16, 2010
  12. Jakub NarebskiNov 16, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.