reprism
Version:
Modular Syntax highlighting for the web
21 lines (20 loc) • 554 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
language: 'php-extras',
init: function init(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: /::|\\/
}
}
});
}
};