main
Last change
on this file 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'
|
---|
2 | var refractorPhp = require('./php.js')
|
---|
3 | module.exports = phpExtras
|
---|
4 | phpExtras.displayName = 'phpExtras'
|
---|
5 | phpExtras.aliases = []
|
---|
6 | function 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.