mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix zend_highlight functionality I broke
Magic consts are not supposed to be highlighted as keywords.
This commit is contained in:
@@ -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 '"':
|
||||
|
||||
Reference in New Issue
Block a user