Apologies for the x-post from stackoverflow, but there appear to be views of [notepad++] here.
According to the
man ksh or
man bash page (RHEL 6.6.0)
is the equivalent of:
How to get the Notepad++ style configurator (Language:Shell) to recognize not to fold on
Folds nicely on the long form but folds to the end of file on the short form.
Edit - added screenshot to clarify following @PeterCJ's response. Seems it may be related folding within functions - nevertheless ...
Following his response, updated from 6.5.3 (problem to 6.8.8). Problem exists in 6.7+ and is solved in 6.8+.