chore: update deps

This commit is contained in:
Aravinth Manivannan
2023-02-19 19:52:14 +05:30
parent b9fd2be304
commit d4f73dd425
5 changed files with 482 additions and 358 deletions

View File

@ -54,10 +54,12 @@ impl<'a> SourcegraphQuery<'a> {
);
// highlighted_html_for_string(&q.code, syntax_set, syntax_def, theme),
let html = SYNTAX_SET.with(|ss| {
let language = self.determine_language(ss);
highlighted_html_for_string(self.code, ss, language, theme)
});
let html = SYNTAX_SET
.with(|ss| {
let language = self.determine_language(ss);
highlighted_html_for_string(self.code, ss, language, theme)
})
.unwrap();
let total_lines = html.lines().count();
for (line_num, line) in html.lines().enumerate() {
if !line.trim().is_empty() {