fix syntax auto detect, was detecting for all. ST3 changed view.find to return (-1,-1) isntead of None