in google script editor
function foo(){ . . . // more than 100 lines . . }
clicking on { or } highlights both in red
with less than 100 lines both are green.
Does it affect the code or is it just there to confuse us.
in google script editor
function foo(){ . . . // more than 100 lines . . }
clicking on { or } highlights both in red
with less than 100 lines both are green.
Does it affect the code or is it just there to confuse us.
I've tried this myself, and reproduced your results, using Chrome on Windows Vista. The paren matching went Red with exactly 100 blank lines between the opening and closing braces.
Steps to try, for the non-believers:
So, CONFIRMED, paren matching stopped, and not because the code was malformed. Why? Well, my guess would be that some limit was necessary, and 100 was a nice, round number.
Edit: Paren aka parentheses, brackets, or braces.
Does it affect your code? Nope - during the save operation, the code parses correctly. (If it didn't, you'd get some error that might or might not help figure out your mistake.)
But why not take that 100-line limit as a hint, and refactor your code?
It doesn't effect the code being run, see issue 2237 in the issue tracker :
Terminating curly bracket in function definition won't turn green
© 2022 - 2024 — McMap. All rights reserved.