aboutsummaryrefslogtreecommitdiff
path: root/node_modules/prismjs/components/prism-php-extras.js
blob: 370a02e32744010e668589d9e1ee9211f812faa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
Prism.languages.insertBefore('php', 'variable', {
	'this': /\$this\b/,
	'global': /\$(?:_(?:SERVER|GET|POST|FILES|REQUEST|SESSION|ENV|COOKIE)|GLOBALS|HTTP_RAW_POST_DATA|argc|argv|php_errormsg|http_response_header)\b/,
	'scope': {
		pattern: /\b[\w\\]+::/,
		inside: {
			keyword: /static|self|parent/,
			punctuation: /::|\\/
		}
	}
});