[Swift-commit] r4910 - wwwdev
vytas at ci.uchicago.edu
vytas at ci.uchicago.edu
Mon Aug 1 09:33:54 CDT 2011
Author: vytas
Date: 2011-08-01 09:33:53 -0500 (Mon, 01 Aug 2011)
New Revision: 4910
Added:
wwwdev/shBrushVDL2.js
Log:
new look & feel
Added: wwwdev/shBrushVDL2.js
===================================================================
--- wwwdev/shBrushVDL2.js (rev 0)
+++ wwwdev/shBrushVDL2.js 2011-08-01 14:33:53 UTC (rev 4910)
@@ -0,0 +1,19 @@
+dp.sh.Brushes.VDL2 = function()
+{
+ var keywords = 'int float integer string date boolean uri any true false null namespace include type if else switch case default while foreach in step app repeat until';
+
+ this.regexList = [
+ { regex: dp.sh.RegexLib.SingleLineCComments, css: 'comment' }, // one line comments
+ { regex: dp.sh.RegexLib.MultiLineCComments, css: 'comment' }, // multiline comments
+ { regex: dp.sh.RegexLib.DoubleQuotedString, css: 'string' }, // strings
+ { regex: dp.sh.RegexLib.SingleQuotedString, css: 'string' }, // strings
+ { regex: new RegExp('\\b([\\d]+(\\.[\\d]+)?|0x[a-f0-9]+)\\b', 'gi'), css: 'number' }, // numbers
+ { regex: new RegExp('\\@[a-z0-9]+\\b', 'gi'), css: 'function' },
+ { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // java keyword
+ ];
+
+ this.CssClass = 'dp-vdl2';
+}
+
+dp.sh.Brushes.VDL2.prototype = new dp.sh.Highlighter();
+dp.sh.Brushes.VDL2.Aliases = ['vdl2'];
More information about the Swift-commit
mailing list