mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-20 16:10:50 +00:00
feat: highlight Gradle Kotlin as Kotlin
- Grade Kotlin is almost the as Kotlin syntax, so render it as such. - Resolves #6138 - Unit test added.
This commit is contained in:
parent
4df855f37c
commit
9bcf9502ef
2 changed files with 8 additions and 1 deletions
|
@ -137,7 +137,8 @@ func CodeFromLexer(lexer chroma.Lexer, code string) template.HTML {
|
|||
// For the case where Enry recognizes the language, but doesn't use the naming
|
||||
// that Chroma expects.
|
||||
var normalizeEnryToChroma = map[string]string{
|
||||
"F#": "FSharp",
|
||||
"F#": "FSharp",
|
||||
"Gradle Kotlin DSL": "Kotlin",
|
||||
}
|
||||
|
||||
// File returns a slice of chroma syntax highlighted HTML lines of code and the matched lexer name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue