Sublime Forum

PHP -> operator lost color

#1

From 3127 to 3132, the -> operator for PHP now appears as the same color as the text…

So with Monokai, it’s all just solid white.

Strangely enough though, => managed to keep it’s color.

I know it’s a little thing, but … just a heads up :slight_smile:

0 Likes

#2

looks like this was caused by the scope changing from keyword.operator.class.php to punctuation.accessor.php (https://github.com/sublimehq/Packages/commit/67550e94a3627d0207e7d8ae57f0404ea082947c#diff-1e446a02188b28f39505f6fd68756a27R941), maybe Monokai should be updated to color it :slight_smile:

0 Likes

#3

I concur with your logic :slight_smile:

0 Likes

#4

Thanks to @kingkeith I was able to make it work on my mokokai theme, you just need to add these few lines to your old monokai theme file

<dict>
	<key>name</key>
	<string>Language variable</string>
	<key>scope</key>
	<string>variable.language</string>
	<key>settings</key>
	<dict>
		<key>fontStyle</key>
		<string>italic</string>
		<key>foreground</key>
		<string>#FD971F</string>
	</dict>
</dict>
0 Likes