added compatibility with Sublime Text 2