mirror of
https://github.com/atom/atom.git
synced 2026-02-09 22:24:59 -05:00
If the file name has no '.' use the file name as the extension.
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user