These are the base entries (no variations) of the database:
{
srcFile: "c.js",
name: "C",
nameMatchers: [".c", ".h"],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "clojure.js",
name: "Clojure",
nameMatchers: [".clj", ".cljs"],
singleLineComment: [{
start: ";;"
}]
}
{
srcFile: "coffeescript.js",
name: "CoffeeScript",
nameMatchers: [".coffee", "Cakefile"],
multiLineComment: [{
start: "###*",
middle: / \*|#/,
end: "###"
}, {
start: "###",
middle: "#",
end: "###"
}],
singleLineComment: [{
start: "#"
}]
}
{
srcFile: "cplusplus.js",
name: "C++",
nameMatchers: [".cpp", ".hpp", ".c++", ".h++", ".cc", ".hh", ".cxx", ".hxx"],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "csharp.js",
name: "CSharp",
nameMatchers: [".cs"],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "css.js",
name: "CSS",
nameMatchers: [".css"],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}]
}
{
srcFile: "go.js",
name: "Go",
nameMatchers: [".go"],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "handlebars.js",
name: "Handlebars",
nameMatchers: [".handlebars", ".hbs"],
multiLineComment: [{
start: "<!--",
middle: "",
end: "-->"
}, {
start: "",
apidoc: true
}, {
start: ""
}]
}
{
srcFile: "haskell.js",
name: "Haskell",
nameMatchers: [".hs"],
singleLineComment: [{
start: "--"
}]
}
{
srcFile: "html.js",
name: "HTML",
nameMatchers: [".htm", ".html"],
multiLineComment: [{
start: "<!--",
middle: "",
end: "-->"
}]
}
{
srcFile: "jade.js",
name: "Jade",
nameMatchers: [".jade"],
singleLineComment: [{
start: "//"
}, {
start: "//-"
}]
}
{
srcFile: "jake.js",
name: "Jake",
nameMatchers: [".jake"],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "java.js",
name: "Java",
nameMatchers: [".java"],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "javascript.js",
name: "JavaScript",
nameMatchers: [".js"],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "json.js",
name: "JSON",
nameMatchers: [".json"]
}
{
srcFile: "jsp.js",
name: "JSP",
nameMatchers: [".jsp"],
multiLineComment: [{
start: "<!--",
middle: "",
end: "-->"
}, {
start: "<%--",
middle: "",
end: "--%>"
}]
}
{
srcFile: "latex.js",
name: "LaTeX",
nameMatchers: [".tex", ".latex", ".sty"],
singleLineComment: [{
start: "%"
}]
}
{
srcFile: "less.js",
name: "LESS",
nameMatchers: [".less"],
singleLineComment: [{
start: "//"
}],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}]
}
{
srcFile: "livescript.js",
name: "LiveScript",
nameMatchers: [".ls", "Slakefile"],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}],
singleLineComment: [{
start: "#"
}]
}
{
srcFile: "lua.js",
name: "Lua",
nameMatchers: [".lua"],
singleLineComment: [{
start: "--"
}]
}
{
srcFile: "make.js",
name: "Make",
nameMatchers: ["Makefile"],
singleLineComment: [{
start: "#"
}]
}
{
srcFile: "markdown.js",
name: "Markdown",
nameMatchers: [".md", ".markdown", ".mkd", ".mkdn", ".mdown"],
commentsOnly: true
}
{
srcFile: "mustache.js",
name: "Mustache",
nameMatchers: [".mustache"],
multiLineComment: [{
start: ""
}]
}
{
srcFile: "objective-c.js",
name: "Objective-C",
nameMatchers: [".m", ".mm"],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "perl.js",
name: "Perl",
nameMatchers: [".pl", ".pm"],
singleLineComment: [{
start: "#"
}]
}
{
srcFile: "php.js",
name: "PHP",
nameMatchers: [".php", ".php3", ".php4", ".php5", ".fbp"],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "puppet.js",
name: "Puppet",
nameMatchers: [".pp"],
singleLineComment: [{
start: "#"
}]
}
{
srcFile: "python.js",
name: "Python",
nameMatchers: [".py"],
singleLineComment: [{
start: "#"
}]
}
{
srcFile: "ruby.js",
name: "Ruby",
nameMatchers: [".rb", ".ru", ".gemspec"],
singleLineComment: [{
start: "#"
}]
}
{
srcFile: "sass.js",
name: "Sass",
nameMatchers: [".sass"],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "scss.js",
name: "SCSS",
nameMatchers: [".scss"],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "shell.js",
name: "Shell",
nameMatchers: [".sh", ".bash"],
singleLineComment: [{
start: "#"
}]
}
{
srcFile: "sql.js",
name: "SQL",
nameMatchers: [".sql"],
singleLineComment: [{
start: "--"
}]
}
{
srcFile: "swift.js",
name: "Swift",
nameMatchers: [".swift"],
multiLineComment: [{
start: /\/\*\*?/,
middle: "*",
end: "*/"
}],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "typescript.js",
name: "TypeScript",
nameMatchers: [".ts"],
multiLineComment: [{
start: /\/\*\*/,
middle: "*",
end: "*/",
apidoc: true
}, {
start: /\/\*/,
middle: "*",
end: "*/"
}],
singleLineComment: [{
start: "//"
}]
}
{
srcFile: "yaml.js",
name: "YAML",
nameMatchers: [".yml", ".yaml"],
singleLineComment: [{
start: "#"
}]
}