You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e.g. my PHP file contains $foo = 'Title to use when rendering.'; and the word when is highlighted, because it is being treated as the <thing> in a use <thing> declaration.
A bit of experimenting suggests that such things only occur for c-type-list-kwds and potentially c-postfix-decl-spec-kwds (which is a subset of the former), but do not happen for the other uses of c-lang-defconst.
Is this just Expected Behaviour from the parent mode, or can php-mode do something to prevent such keywords being fontified inside strings?
I notice that this does not happen inside comments.
The text was updated successfully, but these errors were encountered:
phil-s
changed the title
PHP keywords inside strings are fontified
c-type-list-kwds instances inside strings are fontified
Jan 7, 2019
e.g. my PHP file contains
$foo = 'Title to use when rendering.';
and the wordwhen
is highlighted, because it is being treated as the <thing> in ause <thing>
declaration.I expect the relevant code is:
A bit of experimenting suggests that such things only occur for
c-type-list-kwds
and potentiallyc-postfix-decl-spec-kwds
(which is a subset of the former), but do not happen for the other uses ofc-lang-defconst
.Is this just Expected Behaviour from the parent mode, or can
php-mode
do something to prevent such keywords being fontified inside strings?I notice that this does not happen inside comments.
The text was updated successfully, but these errors were encountered: