prism-php-extras.js 385 B

1234567891011121314
  1. Prism.languages.insertBefore('php', 'variable', {
  2. 'this': {
  3. pattern: /\$this\b/,
  4. alias: 'keyword'
  5. },
  6. 'global': /\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,
  7. 'scope': {
  8. pattern: /\b[\w\\]+::/,
  9. inside: {
  10. 'keyword': /\b(?:parent|self|static)\b/,
  11. 'punctuation': /::|\\/
  12. }
  13. }
  14. });