Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 1207755

Browse files
committed
Merge pull request #2971 from TomMalbran/tom/language-supports
Adding language, extensions and comments supports
2 parents 09240b2 + 77623a8 commit 1207755

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

src/language/languages.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"javascript": {
2121
"name": "JavaScript",
2222
"mode": "javascript",
23-
"fileExtensions": ["js"],
23+
"fileExtensions": ["js", "jsx"],
2424
"blockComment": ["/*", "*/"],
2525
"lineComment": "//"
2626
},
@@ -43,18 +43,37 @@
4343
"fileExtensions": ["php", "php3", "php4", "php5", "phtm", "phtml", "ctp"]
4444
},
4545

46+
"c": {
47+
"name": "C",
48+
"mode": ["clike", "text/x-csrc"],
49+
"fileExtensions": ["c", "h", "i"],
50+
"blockComment": ["/*", "*/"],
51+
"lineComment": "//"
52+
},
53+
4654
"cpp": {
4755
"name": "C++",
4856
"mode": ["clike", "text/x-c++src"],
49-
"fileExtensions": ["cc", "cp", "cpp", "c++", "cxx", "hh", "hpp", "hxx", "h++", "ii", "c", "h", "i"]
57+
"fileExtensions": ["cc", "cp", "cpp", "c++", "cxx", "hh", "hpp", "hxx", "h++", "ii"],
58+
"blockComment": ["/*", "*/"],
59+
"lineComment": "//"
5060
},
5161

5262
"csharp": {
5363
"name": "C#",
5464
"mode": ["clike", "text/x-csharp"],
55-
"fileExtensions": ["cs"]
65+
"fileExtensions": ["cs"],
66+
"blockComment": ["/*", "*/"],
67+
"lineComment": "//"
5668
},
57-
69+
70+
"clike": {
71+
"name": "clike",
72+
"mode": "clike",
73+
"blockComment": ["/*", "*/"],
74+
"lineComment": "//"
75+
},
76+
5877
"java": {
5978
"name": "Java",
6079
"mode": ["clike", "text/x-java"],
@@ -125,5 +144,11 @@
125144
"name": "YAML",
126145
"mode": "yaml",
127146
"fileExtensions": ["yaml", "yml"]
147+
},
148+
149+
"hx": {
150+
"name": "Haxe",
151+
"mode": "haxe",
152+
"fileExtensions": ["hx"]
128153
}
129154
}

0 commit comments

Comments
 (0)