You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
385 B

  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. });