]> Lady’s Gitweb - Gitweb/commit
gitweb.perl: fix %highlight_ext mappings
authorRichard Hubbell <redacted>
Sun, 4 Nov 2012 17:45:55 +0000 (09:45 -0800)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
commit1ae1a4ccaaa9b33e4a82d4c263e0f542e69432cd82e2f361c35858a3dafdbb7d
tree94c07d1d38c1cfe3607a24da87ccf216ffa2feed66bc1224ecdfd93870054dd4
parent8a528a3565b19d0db4bf74e75fbdd0c63790597ee62e70eed234ee078763da6f
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 <redacted>
Signed-off-by: Jeff King <redacted>
gitweb.perl
This page took 0.272641 seconds and 4 git commands to generate.