[wiki-lenny] on établit une séparation entre les ressources statiques upstream et les plugins du crans
* Il faudra faire une solution plus propre, c'est juste pour commiter des changes darcs-hash:20090306075901-bd074-45690e201de838132f1a94901b4a625a50f8a31d.gz
This commit is contained in:
parent
ee14cc246e
commit
cdfb2b41c2
67 changed files with 23 additions and 23 deletions
22
wiki-lenny/static/additional/syntaxHighlighter/shBrushJScript.js
vendored
Normal file
22
wiki-lenny/static/additional/syntaxHighlighter/shBrushJScript.js
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
dp.sh.Brushes.JScript = function()
|
||||
{
|
||||
var keywords = 'abstract boolean break byte case catch char class const continue debugger ' +
|
||||
'default delete do double else enum export extends false final finally float ' +
|
||||
'for function goto if implements import in instanceof int interface long native ' +
|
||||
'new null package private protected public return short static super switch ' +
|
||||
'synchronized this throw throws transient true try typeof var void volatile while with';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: new RegExp('//.*$', 'gm'), css: 'comment' }, // one line comments
|
||||
{ regex: new RegExp('/\\*[\\s\\S]*?\\*/', 'g'), css: 'comment' }, // multiline comments
|
||||
{ regex: new RegExp('"(?:[^"\n]|[\"])*?"', 'g'), css: 'string' }, // double quoted strings
|
||||
{ regex: new RegExp("'(?:[^'\n]|[\'])*?'", 'g'), css: 'string' }, // single quoted strings
|
||||
{ regex: new RegExp('^\\s*#.*', 'gm'), css: 'preprocessor' }, // preprocessor tags like #region and #endregion
|
||||
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keywords
|
||||
];
|
||||
|
||||
this.CssClass = 'dp-c';
|
||||
}
|
||||
|
||||
dp.sh.Brushes.JScript.prototype = new dp.sh.Highlighter();
|
||||
dp.sh.Brushes.JScript.Aliases = ['js', 'jscript', 'javascript'];
|
Loading…
Add table
Add a link
Reference in a new issue