processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
339 stars 91 forks source link

Auto-closing of curly braces is different from parentheses? #255

Open JobLeonard opened 7 years ago

JobLeonard commented 7 years ago

Bit of a nitpick: but I just noticed this while writing a sketch and it resulted in some stupid bugs. Made a micro-screencapture to clarify:

curly brace

Now, this is mostly normal behaviour: the closing curly brace is not entered until you press enter. However, because it's on the last line, the closing brace is hidden! So I kept adding extra closing braces manually, leading to silly bugs.

Is there a reason for not immediately closing {}, like with [] and ()?