diff: Add an option to control syntax aliases

This commit is contained in:
Kovid Goyal
2018-05-08 22:46:25 +05:30
parent 61e1b74434
commit 9ff7eae1af
4 changed files with 33 additions and 11 deletions

View File

@@ -243,7 +243,7 @@ class DiffHandler(Handler):
if initialize_highlighter is not None and not self.highlighting_done:
self.highlighting_done = True
initialize_highlighter()
self.start_job('highlight', highlight_collection, self.collection)
self.start_job('highlight', highlight_collection, self.collection, self.opts.syntax_aliases)
elif job_id == 'highlight':
hdata = job_result['result']
if isinstance(hdata, str):