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