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

Commit e0b47b2

Browse files
committed
Adding language, extensions and comments supports
1 parent fee1311 commit e0b47b2

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

src/language/languages.json

Lines changed: 18 additions & 3 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
},
@@ -46,15 +46,24 @@
4646
"cpp": {
4747
"name": "C++",
4848
"mode": ["clike", "text/x-c++src"],
49-
"fileExtensions": ["cc", "cp", "cpp", "c++", "cxx", "hh", "hpp", "hxx", "h++", "ii", "c", "h", "i"]
49+
"fileExtensions": ["cc", "cp", "cpp", "c++", "cxx", "hh", "hpp", "hxx", "h++", "ii", "c", "h", "i"],
50+
"blockComment": ["/*", "*/"],
51+
"lineComment": "//"
5052
},
5153

5254
"csharp": {
5355
"name": "C#",
5456
"mode": ["clike", "text/x-csharp"],
5557
"fileExtensions": ["cs"]
5658
},
57-
59+
60+
"clike": {
61+
"name": "C",
62+
"mode": "clike",
63+
"blockComment": ["/*", "*/"],
64+
"lineComment": "//"
65+
},
66+
5867
"java": {
5968
"name": "Java",
6069
"mode": ["clike", "text/x-java"],
@@ -125,5 +134,11 @@
125134
"name": "YAML",
126135
"mode": "yaml",
127136
"fileExtensions": ["yaml", "yml"]
137+
},
138+
139+
"hx": {
140+
"name": "Haxe",
141+
"mode": "haxe",
142+
"fileExtensions": ["hx"]
128143
}
129144
}

0 commit comments

Comments
 (0)