[wiki-lenny/static/] ajout des ressources statiques du wiki dans le repo (css)
darcs-hash:20081109214403-bd074-aea913ab711cbdb465ead1d96003dbcf5b52c7c3.gz
This commit is contained in:
parent
6b3f3a1c17
commit
3275986a70
92 changed files with 4356 additions and 0 deletions
31
wiki-lenny/static/common/syntaxHighlighter/shBrushDelphi.js
vendored
Normal file
31
wiki-lenny/static/common/syntaxHighlighter/shBrushDelphi.js
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* Delphi brush is contributed by Eddie Shipman */
|
||||
dp.sh.Brushes.Delphi = function()
|
||||
{
|
||||
var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
|
||||
'case char class comp const constructor currency destructor div do double ' +
|
||||
'downto else end except exports extended false file finalization finally ' +
|
||||
'for function goto if implementation in inherited int64 initialization ' +
|
||||
'integer interface is label library longint longword mod nil not object ' +
|
||||
'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
|
||||
'pint64 pointer private procedure program property pshortstring pstring ' +
|
||||
'pvariant pwidechar pwidestring protected public published raise real real48 ' +
|
||||
'record repeat set shl shortint shortstring shr single smallint string then ' +
|
||||
'threadvar to true try type unit until uses val var varirnt while widechar ' +
|
||||
'widestring with word write writeln xor';
|
||||
|
||||
this.regexList = [
|
||||
{ regex: new RegExp('\\(\\*[\\s\\S]*?\\*\\)', 'gm'), css: 'comment' }, // multiline comments (* *)
|
||||
{ regex: new RegExp('{(?!\\$)[\\s\\S]*?}', 'gm'), css: 'comment' }, // multiline comments { }
|
||||
{ regex: new RegExp('//.*$', 'gm'), css: 'comment' }, // one line
|
||||
{ regex: new RegExp('\'(?:\\.|[^\\\'\'])*\'', 'g'), css: 'string' }, // strings
|
||||
{ regex: new RegExp('\\{\\$[a-zA-Z]+ .+\\}', 'g'), css: 'directive' }, // Compiler Directives and Region tags
|
||||
{ regex: new RegExp('\\b[\\d\\.]+\\b', 'g'), css: 'number' }, // numbers 12345
|
||||
{ regex: new RegExp('\\$[a-zA-Z0-9]+\\b', 'g'), css: 'number' }, // numbers $F5D3
|
||||
{ regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keyword
|
||||
];
|
||||
|
||||
this.CssClass = 'dp-delphi';
|
||||
}
|
||||
|
||||
dp.sh.Brushes.Delphi.prototype = new dp.sh.Highlighter();
|
||||
dp.sh.Brushes.Delphi.Aliases = ['delphi', 'pascal'];
|
Loading…
Add table
Add a link
Reference in a new issue