File: jquery.syntax.brush.php.js

package info (click to toggle)
yelp-xsl 3.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,412 kB
  • ctags: 64
  • sloc: sh: 555; awk: 301; makefile: 230
file content (15 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// brush: "php" 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('php', 'php-script');

Syntax.register('php', function(brush) {
	brush.push({
		pattern: /(<\?(php)?)((.|\n)*?)(\?>)/gm,
		matches: Syntax.extractMatches({klass: 'keyword'}, null, {brush: 'php-script'}, null, {klass: 'keyword'})
	})
});