Skip to content

Commit 592924a

Browse files
rnowaktechknowlogick
authored andcommitted
Fix Erlang and Elixir highlight mappings (#7044)
1 parent 7d12ec2 commit 592924a

File tree

1 file changed

+37
-35
lines changed

1 file changed

+37
-35
lines changed

modules/highlight/highlight.go

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -26,45 +26,47 @@ var (
2626

2727
// Extensions that are same as highlight classes.
2828
highlightExts = map[string]struct{}{
29-
".arm": {},
30-
".as": {},
31-
".sh": {},
32-
".cs": {},
33-
".cpp": {},
34-
".c": {},
35-
".css": {},
36-
".cmake": {},
37-
".bat": {},
38-
".dart": {},
39-
".patch": {},
40-
".elixir": {},
41-
".erlang": {},
42-
".go": {},
43-
".html": {},
44-
".xml": {},
45-
".hs": {},
46-
".ini": {},
47-
".json": {},
48-
".java": {},
49-
".js": {},
50-
".less": {},
51-
".lua": {},
52-
".php": {},
53-
".py": {},
54-
".rb": {},
55-
".scss": {},
56-
".sql": {},
57-
".scala": {},
58-
".swift": {},
59-
".ts": {},
60-
".vb": {},
61-
".yml": {},
62-
".yaml": {},
29+
".arm": {},
30+
".as": {},
31+
".sh": {},
32+
".cs": {},
33+
".cpp": {},
34+
".c": {},
35+
".css": {},
36+
".cmake": {},
37+
".bat": {},
38+
".dart": {},
39+
".patch": {},
40+
".erl": {},
41+
".go": {},
42+
".html": {},
43+
".xml": {},
44+
".hs": {},
45+
".ini": {},
46+
".json": {},
47+
".java": {},
48+
".js": {},
49+
".less": {},
50+
".lua": {},
51+
".php": {},
52+
".py": {},
53+
".rb": {},
54+
".scss": {},
55+
".sql": {},
56+
".scala": {},
57+
".swift": {},
58+
".ts": {},
59+
".vb": {},
60+
".yml": {},
61+
".yaml": {},
6362
}
6463

6564
// Extensions that are not same as highlight classes.
6665
highlightMapping = map[string]string{
67-
".txt": "nohighlight",
66+
".txt": "nohighlight",
67+
".escript": "erlang",
68+
".ex": "elixir",
69+
".exs": "elixir",
6870
}
6971
)
7072

0 commit comments

Comments
 (0)