From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sylvain Rabot Subject: [PATCH 1/4] gitweb: add extensions to highlight feature map Date: Thu, 30 Dec 2010 22:20:28 +0100 Message-ID: <1293744031-17790-2-git-send-email-sylvain@abstraction.fr> References: <1293744031-17790-1-git-send-email-sylvain@abstraction.fr> Cc: Sylvain Rabot To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Dec 30 22:20:49 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PYPvR-0007rf-Rn for gcvg-git-2@lo.gmane.org; Thu, 30 Dec 2010 22:20:46 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755328Ab0L3VUl (ORCPT ); Thu, 30 Dec 2010 16:20:41 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:47626 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131Ab0L3VUk (ORCPT ); Thu, 30 Dec 2010 16:20:40 -0500 Received: by wyb28 with SMTP id 28so11326094wyb.19 for ; Thu, 30 Dec 2010 13:20:39 -0800 (PST) Received: by 10.227.168.79 with SMTP id t15mr9612058wby.200.1293744039502; Thu, 30 Dec 2010 13:20:39 -0800 (PST) Received: from localhost.localdomain (85-168-197-251.rev.numericable.fr [85.168.197.251]) by mx.google.com with ESMTPS id m10sm11283348wbc.16.2010.12.30.13.20.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Dec 2010 13:20:38 -0800 (PST) X-Mailer: git-send-email 1.7.3.4.523.g72f0d.dirty In-Reply-To: <1293744031-17790-1-git-send-email-sylvain@abstraction.fr> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: added: sql, php5, phps, bash, zsh, ksh, mk, make Signed-off-by: Sylvain Rabot --- gitweb/gitweb.perl | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 4779618..ea984b9 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -250,13 +250,14 @@ our %highlight_ext = ( # main extensions, defining name of syntax; # see files in /usr/share/highlight/langDefs/ directory map { $_ => $_ } - qw(py c cpp rb java css php sh pl js tex bib xml awk bat ini spec tcl), + qw(py c cpp rb java css php sh pl js tex bib xml awk bat ini spec tcl sql make), # alternate extensions, see /etc/highlight/filetypes.conf 'h' => 'c', + map { $_ => 'sh' } qw(bash zsh ksh), map { $_ => 'cpp' } qw(cxx c++ cc), - map { $_ => 'php' } qw(php3 php4), + map { $_ => 'php' } qw(php3 php4 php5 phps), map { $_ => 'pl' } qw(perl pm), # perhaps also 'cgi' - 'mak' => 'make', + map { $_ => 'make'} qw(mak mk), map { $_ => 'xml' } qw(xhtml html htm), ); -- 1.7.3.4.523.g72f0d.dirty