Skip to content

Commit

Permalink
Merge branch 'master' into remove-servant
Browse files Browse the repository at this point in the history
  • Loading branch information
robrix authored Jun 24, 2019
2 parents 6dda325 + c8fd375 commit 474985c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Data/Language.hs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ languageForType mediaType = case mediaType of
".rb" -> Ruby
".go" -> Go
".js" -> JavaScript
".mjs" -> JavaScript
".ts" -> TypeScript
".tsx" -> TSX
".jsx" -> JSX
Expand All @@ -120,7 +121,7 @@ extensionsForLanguage :: Language -> [String]
extensionsForLanguage language = case language of
Go -> [".go"]
Haskell -> [".hs"]
JavaScript -> [".js"]
JavaScript -> [".js", ".mjs"]
PHP -> [".php"]
Python -> [".py"]
Ruby -> [".rb"]
Expand All @@ -134,7 +135,7 @@ languageForFilePath :: FilePath -> Language
languageForFilePath = languageForType . takeExtension

supportedExts :: [String]
supportedExts = [".go", ".py", ".rb", ".js", ".ts", ".php", ".phpt"]
supportedExts = [".go", ".py", ".rb", ".js", ".mjs", ".ts", ".php", ".phpt"]

codeNavLanguages :: [Language]
codeNavLanguages = [Go, Ruby, Python, JavaScript, PHP, TypeScript]
Expand Down

0 comments on commit 474985c

Please sign in to comment.