aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/git/handler.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-10-05 16:46:10 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-10-05 16:46:10 +0200
commit78af329f2c7bc1739bcd36baf45ab95aaff43434 (patch)
tree9b61d2b2bc9733a8b66e437a6db9bdac100226b3 /pkg/handler/git/handler.go
parent058274fcc304279b1f4fe5effb683bee1a67f494 (diff)
downloadcerrado-78af329f2c7bc1739bcd36baf45ab95aaff43434.tar.gz
cerrado-78af329f2c7bc1739bcd36baf45ab95aaff43434.tar.bz2
cerrado-78af329f2c7bc1739bcd36baf45ab95aaff43434.zip
ref: Use html syntax highlight for qtpl
For lack of better syntax highlight this should make reading the file easier.
Diffstat (limited to 'pkg/handler/git/handler.go')
-rw-r--r--pkg/handler/git/handler.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go
index 40fae24..6fae146 100644
--- a/pkg/handler/git/handler.go
+++ b/pkg/handler/git/handler.go
@@ -362,6 +362,10 @@ func GetLexers(filename string) chroma.Lexer {
return lexers.Get("sh")
}
+ if strings.HasSuffix(filename, ".qtpl") {
+ return lexers.Get("html")
+ }
+
lexer := lexers.Get(filename)
if lexer == nil {