Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| { | |
| "$schema": "https://zed.dev/schema/themes/v0.1.0.json", | |
| "author": "rafaelrcamargo", | |
| "name": "Minimal", | |
| "themes": [ | |
| { | |
| "appearance": "dark", | |
| "name": "Minimal Dark", | |
| "style": { | |
| // Base colors |
| pub fn is_balanced(s: &str) -> bool { | |
| let mut stack = Vec::new(); | |
| for c in s.chars() { | |
| match c { | |
| '(' | '[' | '{' => stack.push(c), | |
| symbol @ (')' | ']' | '}') if stack.pop() != reverse(symbol) => return false, | |
| _ => (), | |
| } | |
| } |