The matlab lexer sets 'end' as a keyword in the case where it is used as a end of array indicator, where as the editor in matlab doesnt see 'end' in that case as a keyword.
In addition, the folding then incorrectly sees the end keyword as the end of the foldpoint
Patch attached that sets 'end' in same style as a number when used as a index, which then also stops the folding from setting the fold end incorrectly.
There appears to be a typo:
thats what i get for changing the variable name at the last minute. Corrected here.
Last edit: lostbard 2017-06-29
Committed as [15f61e].
Related
Commit: [15f61e]