source: node_modules/refractor/lang/php-extras.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 628 bytes
Line 
1'use strict'
2var refractorPhp = require('./php.js')
3module.exports = phpExtras
4phpExtras.displayName = 'phpExtras'
5phpExtras.aliases = []
6function phpExtras(Prism) {
7 Prism.register(refractorPhp)
8 Prism.languages.insertBefore('php', 'variable', {
9 this: {
10 pattern: /\$this\b/,
11 alias: 'keyword'
12 },
13 global:
14 /\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,
15 scope: {
16 pattern: /\b[\w\\]+::/,
17 inside: {
18 keyword: /\b(?:parent|self|static)\b/,
19 punctuation: /::|\\/
20 }
21 }
22 })
23}
Note: See TracBrowser for help on using the repository browser.