katoikia-app/web-ui/web-react/node_modules/prismjs/components/prism-php-extras.js

11 lines
336 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
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: /::|\\/
}
}
});