1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

Add php to code nav languages

This commit is contained in:
joshvera 2019-06-24 17:33:03 -04:00
parent 6c311896f5
commit 275de222de

View File

@ -134,10 +134,10 @@ languageForFilePath :: FilePath -> Language
languageForFilePath = languageForType . takeExtension
supportedExts :: [String]
supportedExts = [".go", ".py", ".rb", ".js", ".ts"]
supportedExts = [".go", ".py", ".rb", ".js", ".ts", ".php", ".phpt"]
codeNavLanguages :: [Language]
codeNavLanguages = [Go, Ruby, Python, JavaScript, TypeScript]
codeNavLanguages = [Go, Ruby, Python, JavaScript, TypeScript, PHP]
pathIsMinified :: FilePath -> Bool
pathIsMinified = isExtensionOf ".min.js"