MCPcopy Create free account
hub / github.com/PerroEngine/Perro / push_span

Function push_span

perro_website/src/highlight.rs:330–336  ·  view source on GitHub ↗
(out: &mut String, class_name: &str, chars: &[char])

Source from the content-addressed store, hash-verified

328 while chars.get(j) == Some(&'#') {
329 hash_count += 1;
330 j += 1;
331 }
332 j += 1;
333 while j < chars.len() {
334 if chars[j] == '"' {
335 let mut k = j + 1;
336 let mut seen = 0;
337 while seen < hash_count && chars.get(k) == Some(&'#') {
338 seen += 1;
339 k += 1;

Callers 1

highlight_rustFunction · 0.85

Calls 1

push_escaped_charsFunction · 0.85

Tested by

no test coverage detected