gitweb.perl: fix %highlight_ext mappings
commit048b3991924a0666a2ab4f381caac8d62962de38
authorRichard Hubbell <richard_hubbe11@lavabit.com>
Sun, 4 Nov 2012 17:45:55 +0000 (4 09:45 -0800)
committerJeff King <peff@peff.net>
Thu, 8 Nov 2012 17:59:23 +0000 (8 12:59 -0500)
tree32c4642e73eb0e6b0e04c8e04dd4922abaa4a686
parent7e2010537e96d0a1144520222f20ba1dc3d61441
gitweb.perl: fix %highlight_ext mappings

When commit 592ea41 refactored the list of extensions for
syntax highlighting, it failed to take into account perl's
operator precedence within lists. As a result, we end up
creating a dictionary of one-to-one elements when the intent
was to map mutliple related types to one main type (e.g.,
bash, ksh, zsh, and sh should all map to sh since they share
similar syntax, but we ended up just mapping "bash" to
"bash" and so forth).

This patch adds parentheses to make the mapping as the
original change intended. It also reorganizes the list to
keep mapped extensions together.

Signed-off-by: Richard Hubbell <richard_hubbe11@lavabit.com>
Signed-off-by: Jeff King <peff@peff.net>
gitweb/gitweb.perl