Commit Graph

5 Commits (99e1e30b0b13cab4300352c2d0e8170155cfa0bb)

Author SHA1 Message Date
Jelle Hulter bbd30787d3
Updated Chroma to v0.10.0 ()
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>
wxiaoguang 750a8465f5
A better go code formatter, and now `make fmt` can run in Windows ()
* go build / format tools
* re-format imports
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>
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>