0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-06 22:29:03 +01:00
gitea/services/gitdiff
mrsdizzie 8d081950e6
Ensure syntax highlighting is the same inside diffs (#12205)
Make sure to end up with the same syntax highlighting inside various sections of diffs by processing the code first before detecting specific changes between the lines. Also try and make sure that when highlighting individual lines in a diff that it is tokenized the same as it would be when part of an entire file with more context.

Fixes: #12190
2020-07-11 13:43:12 +08:00
..
testdata/academic-module Fix panic when diff (#9187) 2019-11-28 17:05:57 +08:00
gitdiff.go Ensure syntax highlighting is the same inside diffs (#12205) 2020-07-11 13:43:12 +08:00
gitdiff_test.go Server-side syntax highlighting for all code (#12047) 2020-07-01 00:34:03 +03:00
main_test.go Move git diff codes from models to services/gitdiff (#7889) 2019-09-05 22:20:09 -04:00