p5.js-editor
p5.js-editor copied to clipboard
Syntax parser thinks for loop scope variables are already defined.
Basically, for loop local scopes are considered to be part of the scope the for loop is in.

Even in https://github.com/processing/p5.js-editor/blob/84dad397bd38781623f425c82ab57d06746aad38/public/mode_assets/p5/examples/Simulate/10_SoftBody.js where the for loops all use i, the p5 editor thinks the variables are already defined even though they are not in the same scope.