1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 18:23:44 +03:00

Merge branch 'master' into remove-servant

This commit is contained in:
Rob Rix 2019-06-24 05:16:13 -07:00 committed by GitHub
commit 474985c601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,6 +108,7 @@ languageForType mediaType = case mediaType of
".rb" -> Ruby
".go" -> Go
".js" -> JavaScript
".mjs" -> JavaScript
".ts" -> TypeScript
".tsx" -> TSX
".jsx" -> JSX
@ -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"]
@ -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]