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

Adding language, extensions and comments supports #2971

Merged
merged 2 commits into from
Feb 27, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 29 additions & 4 deletions src/language/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"javascript": {
"name": "JavaScript",
"mode": "javascript",
"fileExtensions": ["js"],
"fileExtensions": ["js", "jsx"],
"blockComment": ["/*", "*/"],
"lineComment": "//"
},
Expand All @@ -43,18 +43,37 @@
"fileExtensions": ["php", "php3", "php4", "php5", "phtm", "phtml", "ctp"]
},

"c": {
"name": "C",
"mode": ["clike", "text/x-csrc"],
"fileExtensions": ["c", "h", "i"],
"blockComment": ["/*", "*/"],
"lineComment": "//"
},

"cpp": {
"name": "C++",
"mode": ["clike", "text/x-c++src"],
"fileExtensions": ["cc", "cp", "cpp", "c++", "cxx", "hh", "hpp", "hxx", "h++", "ii", "c", "h", "i"]
"fileExtensions": ["cc", "cp", "cpp", "c++", "cxx", "hh", "hpp", "hxx", "h++", "ii"],
"blockComment": ["/*", "*/"],
"lineComment": "//"
},

"csharp": {
"name": "C#",
"mode": ["clike", "text/x-csharp"],
"fileExtensions": ["cs"]
"fileExtensions": ["cs"],
"blockComment": ["/*", "*/"],
"lineComment": "//"
},


"clike": {
"name": "clike",
"mode": "clike",
"blockComment": ["/*", "*/"],
"lineComment": "//"
},

"java": {
"name": "Java",
"mode": ["clike", "text/x-java"],
Expand Down Expand Up @@ -125,5 +144,11 @@
"name": "YAML",
"mode": "yaml",
"fileExtensions": ["yaml", "yml"]
},

"hx": {
"name": "Haxe",
"mode": "haxe",
"fileExtensions": ["hx"]
}
}