Merge pull request #44 from sinni800/patch-1

Added a lot of nice text filetypes that are often already highlighted…
This commit is contained in:
Henrique Dias 2016-11-03 21:17:16 +00:00 committed by GitHub
commit 693a724a5d

View File

@ -103,14 +103,20 @@ func (i Info) CanBeEdited() bool {
} }
extensions := [...]string{ extensions := [...]string{
"md", "markdown", "mdown", "mmark", ".md", ".markdown", ".mdown", ".mmark",
"asciidoc", "adoc", "ad", ".asciidoc", ".adoc", ".ad",
"rst", ".rst",
".json", ".toml", ".yaml", ".json", ".toml", ".yaml", ".csv", ".xml", ".rss", ".conf", ".ini",
".tex", ".sty",
".css", ".sass", ".scss", ".css", ".sass", ".scss",
".js", ".js",
".html", ".html",
".txt", ".txt", ".rtf",
".sh", ".bash", ".ps1", ".bat", ".cmd",
".php", ".pl", ".py",
"Caddyfile",
".c", ".cc", ".h", ".hh", ".cpp", ".hpp", ".f90",
".f", ".bas", ".d", ".ada", ".nim", ".cr", ".java", ".cs", ".vala", ".vapi",
} }
for _, extension := range extensions { for _, extension := range extensions {