color schemes doesn't work properly
deathaxe
#2
It’s working as expected.
-
define('ABSPATH')
is scopedentity.name.constant
to drive Goto Definition, while all other
references (e.g.:defined('ABSPATH')
) keep being scoped normal strings. -
The
%d
format placeholder is scopedconstant.other.placeholder
, which various color schemes assign a dedicated color to. _The improvement could rather be to also scope%M
withinstrftime()
.
You would need to modify your color scheme using UI: Customize Color Scheme to change highlighting to whatever you want. Required scopes can be determined via ctrl+shift+alt+p
while caret is on a token.
2 Likes