mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
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.
|
||||
highlightExts = map[string]struct{}{
|
||||
".arm": {},
|
||||
".as": {},
|
||||
".sh": {},
|
||||
".cs": {},
|
||||
".cpp": {},
|
||||
".c": {},
|
||||
".css": {},
|
||||
".cmake": {},
|
||||
".bat": {},
|
||||
".dart": {},
|
||||
".patch": {},
|
||||
".elixir": {},
|
||||
".erlang": {},
|
||||
".go": {},
|
||||
".html": {},
|
||||
".xml": {},
|
||||
".hs": {},
|
||||
".ini": {},
|
||||
".json": {},
|
||||
".java": {},
|
||||
".js": {},
|
||||
".less": {},
|
||||
".lua": {},
|
||||
".php": {},
|
||||
".py": {},
|
||||
".rb": {},
|
||||
".scss": {},
|
||||
".sql": {},
|
||||
".scala": {},
|
||||
".swift": {},
|
||||
".ts": {},
|
||||
".vb": {},
|
||||
".yml": {},
|
||||
".yaml": {},
|
||||
".arm": {},
|
||||
".as": {},
|
||||
".sh": {},
|
||||
".cs": {},
|
||||
".cpp": {},
|
||||
".c": {},
|
||||
".css": {},
|
||||
".cmake": {},
|
||||
".bat": {},
|
||||
".dart": {},
|
||||
".patch": {},
|
||||
".erl": {},
|
||||
".go": {},
|
||||
".html": {},
|
||||
".xml": {},
|
||||
".hs": {},
|
||||
".ini": {},
|
||||
".json": {},
|
||||
".java": {},
|
||||
".js": {},
|
||||
".less": {},
|
||||
".lua": {},
|
||||
".php": {},
|
||||
".py": {},
|
||||
".rb": {},
|
||||
".scss": {},
|
||||
".sql": {},
|
||||
".scala": {},
|
||||
".swift": {},
|
||||
".ts": {},
|
||||
".vb": {},
|
||||
".yml": {},
|
||||
".yaml": {},
|
||||
}
|
||||
|
||||
// Extensions that are not same as highlight classes.
|
||||
highlightMapping = map[string]string{
|
||||
".txt": "nohighlight",
|
||||
".txt": "nohighlight",
|
||||
".escript": "erlang",
|
||||
".ex": "elixir",
|
||||
".exs": "elixir",
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue