aboutsummaryrefslogtreecommitdiff
path: root/node_modules/prismjs/components/prism-php-extras.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/prismjs/components/prism-php-extras.js')
-rw-r--r--node_modules/prismjs/components/prism-php-extras.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/prismjs/components/prism-php-extras.js b/node_modules/prismjs/components/prism-php-extras.js
new file mode 100644
index 00000000..370a02e3
--- /dev/null
+++ b/node_modules/prismjs/components/prism-php-extras.js
@@ -0,0 +1,11 @@
+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: /::|\\/
+ }
+ }
+}); \ No newline at end of file