cvs: ZendEngine2 / zend_highlight.c

From: Date: Wed, 11 Aug 2004 22:38:32 +0000
Subject: cvs: ZendEngine2 / zend_highlight.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2862@lists.php.net to get a copy of this message
iliaa Wed Aug 11 18:38:32 2004 EDT Modified files: /ZendEngine2 zend_highlight.c Log: MFH: Fixed bug #29607 (highlighting code with HEREDOC produces invalid output). http://cvs.php.net/diff.php/ZendEngine2/zend_highlight.c?r1=1.44&r2=1.45&ty=u Index: ZendEngine2/zend_highlight.c diff -u ZendEngine2/zend_highlight.c:1.44 ZendEngine2/zend_highlight.c:1.45 --- ZendEngine2/zend_highlight.c:1.44 Tue Aug 10 18:16:46 2004 +++ ZendEngine2/zend_highlight.c Wed Aug 11 18:38:32 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_highlight.c,v 1.44 2004/08/10 22:16:46 iliaa Exp $ */ +/* $Id: zend_highlight.c,v 1.45 2004/08/11 22:38:32 iliaa Exp $ */ #include "zend.h" #include "zend_language_parser.h" @@ -159,6 +159,12 @@ switch (token_type) { case T_END_HEREDOC: zend_html_puts(token.value.str.val, token.value.str.len TSRMLS_CC); + { + char *ptr = LANG_SCNG(yy_text); + if (ptr[LANG_SCNG(yy_leng) - 1] != ';') { + zend_html_putc('\n'); + } + } break; default: zend_html_puts(LANG_SCNG(yy_text), LANG_SCNG(yy_leng) TSRMLS_CC);

« previous php.zend-engine.cvs (#2862) next »