Skip to content

Commit 93c1941

Browse files
committed
Tweaks to php language: change $this to variable and give -> & :: a special class
1 parent 1c4ff37 commit 93c1941

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Templates/highlight.php/php.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,16 @@
108108
"$ref": "#contains.1.contains.0"
109109
},
110110
{
111-
"className": "keyword",
111+
"className": "variable",
112112
"begin": "\\$this\\b"
113113
},
114114
{
115+
"className": "variable",
115116
"begin": "\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"
116117
},
117118
{
118-
"begin": "(::|->)+[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*"
119+
"className": "operator",
120+
"begin": "(::|->)"
119121
},
120122
{
121123
"className": "function",

0 commit comments

Comments
 (0)