projects
/
gitweb-sgk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
34544b2
)
Enabling `*.go` files in the syntax highlighter.
master
origin/HEAD
origin/master
author
Aaron Taylor
<ataylor@subgeniuskitty.com>
Tue, 7 Feb 2023 06:37:38 +0000
(22:37 -0800)
committer
Aaron Taylor
<ataylor@subgeniuskitty.com>
Tue, 7 Feb 2023 06:37:38 +0000
(22:37 -0800)
gitweb.cgi
patch
|
blob
|
blame
|
history
diff --git
a/gitweb.cgi
b/gitweb.cgi
index
f564d9d
..
93d9600
100755
(executable)
--- a/
gitweb.cgi
+++ b/
gitweb.cgi
@@
-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)),