Fixes #353. Fix support for extensions with getLanguages
This commit is contained in:
parent
60b86df3ba
commit
559c2ecbd7
|
@ -294,8 +294,10 @@ module.exports = class Beautifiers
|
|||
|
||||
# Get language
|
||||
fileExtension = path.extname(filePath)
|
||||
languages = @languages.getLanguages({grammar, fileExtension})
|
||||
|
||||
# Remove prefix "." (period) in fileExtension
|
||||
fileExtension = fileExtension.substr(1)
|
||||
languages = @languages.getLanguages({grammar, extension: fileExtension})
|
||||
logger.verbose(languages, grammar, fileExtension)
|
||||
|
||||
# Check if unsupported language
|
||||
if languages.length < 1
|
||||
|
|
Loading…
Reference in New Issue