swarm-game / swarm

Resource gathering + programming game
Other
834 stars 53 forks source link

Automatically insert matching close brackets at REPL #1953

Closed byorgey closed 3 months ago

byorgey commented 3 months ago

Closes #1952. Whenever you type (, [, or { at the REPL, a matching close bracket is automatically inserted.

I suppose the next level would be to have it delete both brackets if you hit backspace immediately after inserting an open bracket, but I'll leave that for another PR. Doesn't seem that important anyway.