All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.shBrushAci.js Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
/**
 * SyntaxHighlighter
 * http://alexgorbatchev.com/SyntaxHighlighter
 *
 * SyntaxHighlighter is donationware. If you are using it, please donate.
 * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
 *
 * @version
 * 3.0.83 (Fri, 14 Mar 2014 17:58:18 GMT)
 *
 * @copyright
 * Copyright (C) 2004-2013 Alex Gorbatchev.
 *
 * @license
 * Dual licensed under the MIT and GPL licenses.
 */
/**
 * Portions Copyright 2012 ForgeRock AS
 */
;(function()
{
	// CommonJS
	SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'?
					require('shCore').SyntaxHighlighter : null);

	function Brush()
	{
		var keywords = 'aci acl add all allow anyone authmethod compare '
				+ 'dayofweek  delete deny dns export extop groupdn import ip '
				+ 'parent proxy read search self selfwrite ssf target ' +
				+ 'targetattr targattrfilters targetcontrol targetfilter '
				+ 'targetscope timeofday userattr userdn write';
		/* Need to separate keywords having another keyword as a prefix */
		var repeated = 'allow targetattr targattrfilters targetcontrol '
				+ 'targetfilter targetscope';
		this.regexList = [
		  { regex: new RegExp(this.getKeywords(keywords), 'gim'), css: 'keyword' },
		  { regex: new RegExp(this.getKeywords(repeated), 'gim'), css: 'keyword' },
		  { regex: /version 3\.0/g,                               css: 'keyword' },
		  { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' },
		  { regex: /[\(\);]/g,                                    css: 'color3' },
		];
	};

	Brush.prototype	= new SyntaxHighlighter.Highlighter();
	Brush.aliases	= ['aci'];

	SyntaxHighlighter.brushes.Aci = Brush;

	// CommonJS
	typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
})();




© 2015 - 2024 Weber Informatics LLC | Privacy Policy