mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 08:28:11 +08:00
Add editor structure outline to the developer guide on the website
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user