cvs: ZendEngine2(PHP_5_0) / zend_highlight.c

From: Date: Wed, 11 Aug 2004 22:38:31 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_highlight.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2861@lists.php.net to get a copy of this message
iliaa Wed Aug 11 18:38:31 2004 EDT Modified files: (Branch: PHP_5_0) /ZendEngine2 zend_highlight.c Log: Fixed bug #29607 (highlighting code with HEREDOC produces invalid output). http://cvs.php.net/diff.php/ZendEngine2/zend_highlight.c?r1=1.43.2.1&r2=1.43.2.2&ty=u Index: ZendEngine2/zend_highlight.c diff -u ZendEngine2/zend_highlight.c:1.43.2.1 ZendEngine2/zend_highlight.c:1.43.2.2 --- ZendEngine2/zend_highlight.c:1.43.2.1 Tue Aug 10 18:16:50 2004 +++ ZendEngine2/zend_highlight.c Wed Aug 11 18:38:31 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_highlight.c,v 1.43.2.1 2004/08/10 22:16:50 iliaa Exp $ */ +/* $Id: zend_highlight.c,v 1.43.2.2 2004/08/11 22:38:31 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 (#2861) next »