Code folding not ignoring strings

I just noticed this today. I don’t know if it’s existed in previous versions.

Code folding is supposed to occur when blocks of code exist. Such blocks are indicated by things like the “do” keyword, or parentheses spanning multiple lines. However, the system does not seem to ignore strings. Therefore, if you use keywords such as “do” or “then” in a string, it will trigger code folding for the given line.

See the example below:

1 Like

This has been reported before I believe

1 Like

Dangit, this is the second time in two days I’ve done this. I’ve even searched before-hand and didn’t find anything. I must be bad at search terms.

Well, it’s still an issue I guess.

1 Like

A post was merged into an existing topic: Script Editor: Folding does not work properly when keywords in comments or elseif is involved

Merged into existing thread, thanks