diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-10-05 16:46:10 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-10-05 16:46:10 +0200 |
commit | 78af329f2c7bc1739bcd36baf45ab95aaff43434 (patch) | |
tree | 9b61d2b2bc9733a8b66e437a6db9bdac100226b3 | |
parent | 058274fcc304279b1f4fe5effb683bee1a67f494 (diff) | |
download | cerrado-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.
-rw-r--r-- | pkg/handler/git/handler.go | 4 |
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 { |