You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
7.4 KiB
1 lines
7.4 KiB
module.exports = [{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"C",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(((?:[ \t]*?;;.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*;;/gm],name:"Clojure",info:[{type:"singleline"}]},{regex:/^([ \t]*)(###\*([\s\S]*?)###|###([\s\S]*?)###|((?:[ \t]*?#.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]* \*|#/gm,/^[ \t]*#/gm,/^[ \t]*#/gm],name:"CoffeeScript",info:[{type:"multiline"},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"C++",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"CSharp",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/)[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm],name:"CSS",info:[{type:"multiline",apidoc:true},{type:"multiline"}]},{regex:/^([ \t]*)(((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\/\//gm],name:"Go",info:[{type:"singleline"}]},{regex:/^([ \t]*)(<!--([\s\S]*?)-->|\{\{!--([\s\S]*?)--\}\}|\{\{!([\s\S]*?)\}\})[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[null,null,null],name:"Handlebars",info:[{type:"multiline"},{type:"multiline",apidoc:true},{type:"multiline"}]},{regex:/^([ \t]*)(((?:[ \t]*?--.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*--/gm],name:"Haskell",info:[{type:"singleline"}]},{regex:/^([ \t]*)(<!--([\s\S]*?)-->)[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[null],name:"HTML",info:[{type:"multiline"}]},{regex:/^([ \t]*)(((?:[ \t]*?\/\/.*\r?\n?)+)|((?:[ \t]*?\/\/-.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\/\//gm,/^[ \t]*\/\/-/gm],name:"Jade",info:[{type:"singleline"},{type:"singleline"}]},{regex:/^([ \t]*)(((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\/\//gm],name:"Jake",info:[{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"Java",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"JavaScript",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)()[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[],name:"JSON",info:[]},{regex:/^([ \t]*)(<!--([\s\S]*?)-->|<%--([\s\S]*?)--%>)[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[null,null],name:"JSP",info:[{type:"multiline"},{type:"multiline"}]},{regex:/^([ \t]*)(((?:[ \t]*?%.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*%/gm],name:"LaTeX",info:[{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"LESS",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?#.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*#/gm],name:"LiveScript",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(((?:[ \t]*?--.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*--/gm],name:"Lua",info:[{type:"singleline"}]},{regex:/^([ \t]*)(((?:[ \t]*?#.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*#/gm],name:"Make",info:[{type:"singleline"}]},{regex:/^([ \t]*)()[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[],name:"Markdown",info:[]},{regex:/^([ \t]*)(\{\{!([\s\S]*?)\}\})[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[null],name:"Mustache",info:[{type:"multiline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"Objective-C",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(((?:[ \t]*?#.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*#/gm],name:"Perl",info:[{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"PHP",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(((?:[ \t]*?#.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*#/gm],name:"Puppet",info:[{type:"singleline"}]},{regex:/^([ \t]*)("""([\s\S]*?)"""|((?:[ \t]*?#.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[null,/^[ \t]*#/gm],name:"Python",info:[{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(=begin([\s\S]*?)=end|((?:[ \t]*?#.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[null,/^[ \t]*#/gm],name:"Ruby",info:[{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\/\//gm],name:"Sass",info:[{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"SCSS",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(((?:[ \t]*?#.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*#/gm],name:"Shell",info:[{type:"singleline"}]},{regex:/^([ \t]*)(((?:[ \t]*?--.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*--/gm],name:"SQL",info:[{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*?([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"Swift",info:[{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(\/\*\*([\s\S]*?)\*\/|\/\*([\s\S]*?)\*\/|((?:[ \t]*?\/\/.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*\*/gm,/^[ \t]*\*/gm,/^[ \t]*\/\//gm],name:"TypeScript",info:[{type:"multiline",apidoc:true},{type:"multiline"},{type:"singleline"}]},{regex:/^([ \t]*)(((?:[ \t]*?#.*\r?\n?)+))[\r\n]*/gm,cg:{indent:1,wholeComment:2,contentStart:3},middle:[/^[ \t]*#/gm],name:"YAML",info:[{type:"singleline"}]}];
|