It looks that the code folding feature misinterprets the bind event if it has an event in the format: <<event>>. It interprets the whole script after the "<<" characters as one block. Screen capture of the issue: 
<< characters removed:  It looks, that if a non-whitespace character is between the <<>>, then the error shows up:   -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/1295
