##// 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
vbscript.js
26 lines | 871 B | application/javascript | JavascriptLexer
added codemirror edit mode with autodetection
r4026 CodeMirror.defineMode("vbscript", function() {
var regexVBScriptKeyword = /^(?:Call|Case|CDate|Clear|CInt|CLng|Const|CStr|Description|Dim|Do|Each|Else|ElseIf|End|Err|Error|Exit|False|For|Function|If|LCase|Loop|LTrim|Next|Nothing|Now|Number|On|Preserve|Quit|ReDim|Resume|RTrim|Select|Set|Sub|Then|To|Trim|True|UBound|UCase|Until|VbCr|VbCrLf|VbLf|VbTab)$/im;
return {
token: function(stream) {
if (stream.eatSpace()) return null;
var ch = stream.next();
if (ch == "'") {
stream.skipToEnd();
return "comment";
}
if (ch == '"') {
stream.skipTo('"');
return "string";
}
if (/\w/.test(ch)) {
stream.eatWhile(/\w/);
if (regexVBScriptKeyword.test(stream.current())) return "keyword";
}
return null;
}
};
});
CodeMirror.defineMIME("text/vbscript", "vbscript");