forio / julia-studio

An IDE for the Julia Language
forio.com/products/julia-studio
GNU General Public License v3.0
223 stars 48 forks source link

Array Index [end] causes code-folding to break #248

Open Lukas-Q opened 9 years ago

Lukas-Q commented 9 years ago

This bug might be related to Issue #225 but has a different characteristic.

Julia allows for calling the Array Index [end] to give you the last element of an array. However if one uses this in Julia Studio 0.4.5 on a Windows 7 - 64bit machine (I had no other system available for testing so far) the [end] is interpreted by Julia Studio's code-folding algorithm as the end of a foldable block. Eg:

unfolded

folded This minimal example also shows, that the last "end" command somehow starts a new folding block for Julia-Studio. This one however is not collapsable (clicking the little arrow doesn't do anything).

This bug can be rather annoying especially in large documents.