diff options
author | Robert A. Nowak <r.nowak@sciencia.se> | 2019-05-30 23:23:16 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-05-30 17:23:16 -0400 |
commit | 592924a34b8e671c93416c01a468b9aab0ab39aa (patch) | |
tree | 9d652528fc9212153e91df0b6e18e996482320ce | |
parent | 7d12ec2abd452c6a8a5981537ce2c50440979e25 (diff) | |
download | gitea-592924a34b8e671c93416c01a468b9aab0ab39aa.tar.gz gitea-592924a34b8e671c93416c01a468b9aab0ab39aa.zip |
Fix Erlang and Elixir highlight mappings (#7044)
-rw-r--r-- | modules/highlight/highlight.go | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/modules/highlight/highlight.go b/modules/highlight/highlight.go index fc9a4ad103..6d5e1a97ba 100644 --- a/modules/highlight/highlight.go +++ b/modules/highlight/highlight.go @@ -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", } ) |