If the file name has no '.' use the file name as the extension.

This commit is contained in:
Corey Johnson
2012-09-04 10:53:28 -07:00
parent fb039276de
commit 4734c8cdc4
3 changed files with 10 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ class TextMateBundle
@grammarForFileName: (fileName) ->
extension = fs.extension(fileName)?[1...]
if fileName and extension.length == 0
extension = fileName
@grammarsByFileType[extension] or @grammarsByFileType["txt"]
@getPreferenceInScope: (scopeSelector, preferenceName) ->