Sha256: d4b16544c7181a5d28243bcb7c84cf3ff35fea65993ebd9cbb9d7280b518ed4b

Contents?: true

Size: 1.24 KB

Versions: 10

Compression:

Stored size: 1.24 KB

Contents

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: 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' },			// double quoted strings
		{ regex: dp.sh.RegexLib.SingleQuotedString,					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'];

Version data entries

10 entries across 10 versions & 5 rubygems

Version Path
brandon-codex-1.0.3 app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
drnic-codex-1.0.0 app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
drnic-codex-1.0.1 app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
drnic-codex-1.0.2 app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
pragdave-codex-1.0.3 app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
tobias-codex-1.0.3 app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
codex-1.1.2 app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
codex-1.1.1 app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
codex-1.1.0 app_generators/codex/templates/assets/dp.SyntaxHighlighter/Scripts/shBrushJScript.js
codex-1.0.2 app_generators/codex/templates/dp.SyntaxHighlighter/Scripts/shBrushJScript.js