forked from gitea/gitea
1
0
Fork 0

Fix Erlang and Elixir highlight mappings (#7044)

This commit is contained in:
Robert A. Nowak 2019-05-30 23:23:16 +02:00 committed by techknowlogick
parent 7d12ec2abd
commit 592924a34b
1 changed files with 37 additions and 35 deletions

View File

@ -26,45 +26,47 @@ var (
// Extensions that are same as highlight classes. // Extensions that are same as highlight classes.
highlightExts = map[string]struct{}{ highlightExts = map[string]struct{}{
".arm": {}, ".arm": {},
".as": {}, ".as": {},
".sh": {}, ".sh": {},
".cs": {}, ".cs": {},
".cpp": {}, ".cpp": {},
".c": {}, ".c": {},
".css": {}, ".css": {},
".cmake": {}, ".cmake": {},
".bat": {}, ".bat": {},
".dart": {}, ".dart": {},
".patch": {}, ".patch": {},
".elixir": {}, ".erl": {},
".erlang": {}, ".go": {},
".go": {}, ".html": {},
".html": {}, ".xml": {},
".xml": {}, ".hs": {},
".hs": {}, ".ini": {},
".ini": {}, ".json": {},
".json": {}, ".java": {},
".java": {}, ".js": {},
".js": {}, ".less": {},
".less": {}, ".lua": {},
".lua": {}, ".php": {},
".php": {}, ".py": {},
".py": {}, ".rb": {},
".rb": {}, ".scss": {},
".scss": {}, ".sql": {},
".sql": {}, ".scala": {},
".scala": {}, ".swift": {},
".swift": {}, ".ts": {},
".ts": {}, ".vb": {},
".vb": {}, ".yml": {},
".yml": {}, ".yaml": {},
".yaml": {},
} }
// Extensions that are not same as highlight classes. // Extensions that are not same as highlight classes.
highlightMapping = map[string]string{ highlightMapping = map[string]string{
".txt": "nohighlight", ".txt": "nohighlight",
".escript": "erlang",
".ex": "elixir",
".exs": "elixir",
} }
) )