]> Lady’s Gitweb - Gitweb/commitdiff
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)
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>

No differences found
This page took 0.213045 seconds and 4 git commands to generate.