Enabling `*.go` files in the syntax highlighter. master origin/HEAD origin/master
authorAaron Taylor <ataylor@subgeniuskitty.com>
Tue, 7 Feb 2023 06:37:38 +0000 (22:37 -0800)
committerAaron Taylor <ataylor@subgeniuskitty.com>
Tue, 7 Feb 2023 06:37:38 +0000 (22:37 -0800)
gitweb.cgi

index f564d9d..93d9600 100755 (executable)
@@ -275,7 +275,7 @@ our %highlight_basename = (
 our %highlight_ext = (
        # main extensions, defining name of syntax;
        # see files in /usr/share/highlight/langDefs/ directory
 our %highlight_ext = (
        # main extensions, defining name of syntax;
        # see files in /usr/share/highlight/langDefs/ directory
-       (map { $_ => $_ } qw(py rb java css js tex bib xml awk bat ini spec tcl sql)),
+       (map { $_ => $_ } qw(py rb java css js tex bib xml awk bat ini spec tcl sql go)),
        # alternate extensions, see /etc/highlight/filetypes.conf
        (map { $_ => 'c'   } qw(c h)),
        (map { $_ => 'sh'  } qw(sh bash zsh ksh)),
        # alternate extensions, see /etc/highlight/filetypes.conf
        (map { $_ => 'c'   } qw(c h)),
        (map { $_ => 'sh'  } qw(sh bash zsh ksh)),