Add editor structure outline to the developer guide on the website

This commit is contained in:
Keavon Chambers
2025-07-12 23:09:29 -07:00
parent 765092fbe9
commit d6d1bbb1e6
18 changed files with 426 additions and 558 deletions
+14
View File
@@ -72,6 +72,20 @@ pub fn clean_rust_type_syntax(input: String) -> String {
chars.next();
}
}
'-' => {
if let Some('>') = chars.peek() {
while let Some(' ') = result.chars().rev().next() {
result.pop();
}
result.push_str(" -> ");
chars.next();
while let Some(' ') = chars.peek() {
chars.next();
}
} else {
result.push(c);
}
}
':' => {
if let Some(':') = chars.peek() {
while let Some(' ') = result.chars().rev().next() {