UNPKG

refractor

Version:

Lightweight, robust, elegant virtual syntax highlighting using Prism

19 lines (17 loc) 503 B
'use strict'; module.exports = phpExtras; phpExtras.displayName = 'phpExtras'; phpExtras.aliases = []; function phpExtras(Prism) { 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: /::|\\/ } } }); }