Merge pull request #1 from wbond/master

update code
Update to compatible with Sublime  Text 3
Merge pull request #1888 from yulanggong/master

Update to compatible with Sublime  Text 3