forked from realaravinth/libmedium
Deploying to gh-libmedium from @ fc371487fd
🚀
This commit is contained in:
parent
5228edf645
commit
bac3342c54
48 changed files with 294 additions and 298 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -166,8 +166,6 @@
|
||||||
<a href="#166" id="166">166</a>
|
<a href="#166" id="166">166</a>
|
||||||
<a href="#167" id="167">167</a>
|
<a href="#167" id="167">167</a>
|
||||||
<a href="#168" id="168">168</a>
|
<a href="#168" id="168">168</a>
|
||||||
<a href="#169" id="169">169</a>
|
|
||||||
<a href="#170" id="170">170</a>
|
|
||||||
</pre><pre class="rust"><code><span class="comment">/*
|
</pre><pre class="rust"><code><span class="comment">/*
|
||||||
* Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
* Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||||
*
|
*
|
||||||
|
@ -224,12 +222,10 @@
|
||||||
);
|
);
|
||||||
|
|
||||||
<span class="comment">// highlighted_html_for_string(&q.code, syntax_set, syntax_def, theme),
|
<span class="comment">// highlighted_html_for_string(&q.code, syntax_set, syntax_def, theme),
|
||||||
</span><span class="kw">let </span>html = SYNTAX_SET
|
</span><span class="kw">let </span>html = SYNTAX_SET.with(|ss| {
|
||||||
.with(|ss| {
|
<span class="kw">let </span>language = <span class="self">self</span>.determine_language(ss);
|
||||||
<span class="kw">let </span>language = <span class="self">self</span>.determine_language(ss);
|
highlighted_html_for_string(<span class="self">self</span>.code, ss, language, theme)
|
||||||
highlighted_html_for_string(<span class="self">self</span>.code, ss, language, theme)
|
});
|
||||||
})
|
|
||||||
.unwrap();
|
|
||||||
<span class="kw">let </span>total_lines = html.lines().count();
|
<span class="kw">let </span>total_lines = html.lines().count();
|
||||||
<span class="kw">for </span>(line_num, line) <span class="kw">in </span>html.lines().enumerate() {
|
<span class="kw">for </span>(line_num, line) <span class="kw">in </span>html.lines().enumerate() {
|
||||||
<span class="kw">if </span>!line.trim().is_empty() {
|
<span class="kw">if </span>!line.trim().is_empty() {
|
||||||
|
|
Loading…
Reference in a new issue