mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix zend_highlight functionality I broke
Magic consts are not supposed to be highlighted as keywords.
This commit is contained in:
parent
f719b9ddcf
commit
1984a49b71
1 changed files with 8 additions and 2 deletions
|
@ -104,9 +104,15 @@ ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini
|
|||
break;
|
||||
case T_OPEN_TAG:
|
||||
case T_OPEN_TAG_WITH_ECHO:
|
||||
next_color = syntax_highlighter_ini->highlight_default;
|
||||
break;
|
||||
case T_CLOSE_TAG:
|
||||
case T_LINE:
|
||||
case T_FILE:
|
||||
case T_DIR:
|
||||
case T_TRAIT_C:
|
||||
case T_METHOD_C:
|
||||
case T_FUNC_C:
|
||||
case T_NS_C:
|
||||
case T_CLASS_C:
|
||||
next_color = syntax_highlighter_ini->highlight_default;
|
||||
break;
|
||||
case '"':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue