Fix Erlang and Elixir highlight mappings (#7044)
This commit is contained in:
parent
7d12ec2abd
commit
592924a34b
1 changed files with 37 additions and 35 deletions
|
@ -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",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Reference in a new issue