]> source.dussan.org Git - gitea.git/commit
Use existing analyzer module for language detection for highlighting (#13522)
authormrsdizzie <info@mrsdizzie.com>
Fri, 13 Nov 2020 21:13:41 +0000 (16:13 -0500)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 21:13:41 +0000 (16:13 -0500)
commit6280af03240b13f66a54e7c91d913ce98c3887eb
treeb25f87766e2e125d894e4837a8ae7ecad612b10a
parent3cd00c33cebf5651f2fdbc356783d1be0733ac71
Use existing analyzer module for language detection for highlighting (#13522)

* Use existing analyzer module for language detction for highlighting

Thanks @lafriks for pointing out we can reuse existing code for more reliable language detection here.

* Update modules/highlight/highlight.go

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
modules/highlight/highlight.go