##// END OF EJS Templates
Introduce LICENSE.md to include license information about Bootstrap 3.0.0...
Introduce LICENSE.md to include license information about Bootstrap 3.0.0 This creates a LICENSE.md file which will ultimately contain all relevant licensing information for the project, but for the moment just contains information about Boostrap 3.0.0 licensed under Apache License 2.0. A copy of the Apache license is also herein included.

File last commit:

r4026:a60a0e90 default
r4118:fd2dff05 rhodecode-2.2.5-gpl
Show More
changes.js
19 lines | 636 B | application/javascript | JavascriptLexer
added codemirror edit mode with autodetection
r4026 CodeMirror.defineMode("changes", function() {
var headerSeperator = /^-+$/;
var headerLine = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /;
var simpleEmail = /^[\w+.-]+@[\w.-]+/;
return {
token: function(stream) {
if (stream.sol()) {
if (stream.match(headerSeperator)) { return 'tag'; }
if (stream.match(headerLine)) { return 'tag'; }
}
if (stream.match(simpleEmail)) { return 'string'; }
stream.next();
return null;
}
};
});
CodeMirror.defineMIME("text/x-rpm-changes", "changes");