mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
wip: let's figure out how edn keymaps will work
This commit is contained in:
parent
4ab08e48e5
commit
794d4210c6
33 changed files with 161 additions and 85 deletions
|
|
@ -62,10 +62,10 @@ impl<'a> Token<'a> {
|
|||
)),
|
||||
_ => return Err(ParseError::Unexpected(c))
|
||||
},
|
||||
Exp(source, index, length, depth) => match c {
|
||||
')' => Exp(source, index, length + 1, depth - 1),
|
||||
'(' => Exp(source, index, length + 1, depth + 1),
|
||||
_ => Exp(source, index, length + 1, depth)
|
||||
Exp(source, index, length, balance) => match c {
|
||||
')' => Exp(source, index, length + 1, balance - 1),
|
||||
'(' => Exp(source, index, length + 1, balance + 1),
|
||||
_ => Exp(source, index, length + 1, balance)
|
||||
},
|
||||
};
|
||||
chars = next
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue