Sha256: f2c3a558f9a9b2cc7b4ae8fa1836efffc3515de3273269421a80d46a357005ee

Contents?: true

Size: 1.01 KB

Versions: 80

Compression:

Stored size: 1.01 KB

Contents

// brush: "html" aliases: []

//	This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
//	Copyright (c) 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
//	See <jquery.syntax.js> for licensing details.

Syntax.brushes.dependency('trenni', 'xml');
Syntax.brushes.dependency('trenni', 'ruby');

Syntax.register('trenni', function(brush) {
	brush.push({
		pattern: /((<\?r)([\s\S]*?)(\?>))/gm,
		matches: Syntax.extractMatches(
			{klass: 'ruby-tag', allow: ['keyword', 'ruby']},
			{klass: 'keyword'},
			{brush: 'ruby'},
			{klass: 'keyword'}
		)
	});
	
	brush.push({
		pattern: /((#{)([\s\S]*?)(}))/gm,
		matches: Syntax.extractMatches(
			{klass: 'ruby-tag', allow: ['keyword', 'ruby']},
			{klass: 'keyword'},
			{brush: 'ruby'},
			{klass: 'keyword'}
		)
	});
	
	// The position of this statement is important - it determines at what point the rules of the parent are processed.
	// In this case, the rules for xml are processed after the rules for html.
	brush.derives('xml');
});

Version data entries

80 entries across 49 versions & 2 rubygems

Version Path
utopia-wiki-0.3.0 lib/components/jquery-syntax/source/jquery.syntax.brush.trenni.js
utopia-wiki-0.2.0 lib/components/jquery-syntax/source/jquery.syntax.brush.trenni.js
utopia-2.13.4 docs/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.13.4 documentation/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.13.3 documentation/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.13.3 docs/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.13.2 documentation/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.13.2 docs/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.13.1 documentation/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.13.1 docs/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.13.0 docs/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.13.0 documentation/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.12.4 docs/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.12.4 documentation/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.12.3 docs/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.12.3 documentation/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.12.2 docs/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.12.2 documentation/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.12.1 docs/_components/jquery-syntax/jquery.syntax.brush.trenni.js
utopia-2.12.1 documentation/public/_components/jquery-syntax/jquery.syntax.brush.trenni.js