Skip to content

Commit 3ce19eb

Browse files
sylrgitster
authored andcommitted
gitweb: add extensions to highlight feature map
added: sql, php5, phps, bash, zsh, ksh, mk, make Signed-off-by: Sylvain Rabot <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f2665ec commit 3ce19eb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gitweb/gitweb.perl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,14 @@ sub evaluate_uri {
250250
# main extensions, defining name of syntax;
251251
# see files in /usr/share/highlight/langDefs/ directory
252252
map { $_ => $_ }
253-
qw(py c cpp rb java css php sh pl js tex bib xml awk bat ini spec tcl),
253+
qw(py c cpp rb java css php sh pl js tex bib xml awk bat ini spec tcl sql make),
254254
# alternate extensions, see /etc/highlight/filetypes.conf
255255
'h' => 'c',
256+
map { $_ => 'sh' } qw(bash zsh ksh),
256257
map { $_ => 'cpp' } qw(cxx c++ cc),
257-
map { $_ => 'php' } qw(php3 php4),
258+
map { $_ => 'php' } qw(php3 php4 php5 phps),
258259
map { $_ => 'pl' } qw(perl pm), # perhaps also 'cgi'
259-
'mak' => 'make',
260+
map { $_ => 'make'} qw(mak mk),
260261
map { $_ => 'xml' } qw(xhtml html htm),
261262
);
262263

0 commit comments

Comments
 (0)