When the hook code snippets grab the filename, they grab everything up to the last '.'
This works fine for any .module, .install etc but doesn't work anytime you have a file like modulename.views.inc etc as it creates:
function modulename.views($vars) {}
Here's a regular expression that changes that behavior: ^[^.]+(?=.)
I tried editing hook.sublime-snippet but it didn't seem to make a difference.