Commit graph

5 commits

Author SHA1 Message Date
Jelle Hulter
bbd30787d3
Updated Chroma to v0.10.0 () 2022-01-20 17:59:15 +08:00
zeripath
3c4724d70e
Add .gitattribute assisted language detection to blame, diff and render ()
Use check attribute code to check the assigned language of a file and send that in to
chroma as a hint for the language of the file.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-11-17 20:37:00 +00:00
wxiaoguang
750a8465f5
A better go code formatter, and now make fmt can run in Windows ()
* go build / format tools
* re-format imports
2021-11-17 20:34:35 +08:00
zeripath
f31e7a67cf
Just use a slice when rendering file ()
Highlight currently uses a map which is memory inefficient. Switch to use a slice instead.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-08-23 22:23:39 +01:00
zeripath
23a87a003e
Ensure empty lines are copiable and final new line too ()
* Ensure empty lines are copiable and final new line too

When files are highlighted the newline character needs to be added in a whitespace
compliant mode. Also ensure the final empty newline is rendered.

Fix 

* Add test and ensure spans closed

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-08-14 01:16:56 +02:00