Skip to content

Commit

Permalink
fix(gnoweb): chroma gno.mod support (#3387)
Browse files Browse the repository at this point in the history
Chroma actually doesn't support `gno.mod` for highlighting; this PR
simply falls back to the `txt` format.

Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton authored Dec 20, 2024
1 parent 10db3b4 commit f664c62
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gno.land/pkg/gnoweb/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,6 @@ func (h *WebHandler) highlightSource(fileName string, src []byte) ([]byte, error
lexer = lexers.Get("go")
case ".md":
lexer = lexers.Get("markdown")
case ".mod":
lexer = lexers.Get("gomod")
default:
lexer = lexers.Get("txt") // file kind not supported, fallback on `.txt`
}
Expand Down

0 comments on commit f664c62

Please sign in to comment.