Bug #16945 Updated: bug in syntax highlight

From: Date: Thu, 02 May 2002 12:42:37 +0000
Subject: Bug #16945 Updated: bug in syntax highlight
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6723@lists.php.net to get a copy of this message
ID: 16945 Updated by: sniper@php.net Reported By: goba@php.net Status: Open -Bug Type: Unknown/Other Function +Bug Type: Scripting Engine problem Operating System: win2k PHP Version: 4.1.2 Previous Comments: ------------------------------------------------------------------------ [2002-05-01 10:23:21] goba@php.net While generating the new CHM highlights I came across a bug. Seems like the syntax highliter does not like backslashes in strings, or something like that... This example was on the preg_match_all() page. The original source: preg_match_all ("/(<([\w]+)[^>]*>)(.*)(<\/\\2>)/", $html, $matches); The output of the highlight: preg_match_all ("/(<([ Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180 w]+)[^>]*>)(.*)(< Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180 / Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in E:\phpcvs\phpdoc\htmlhelp\filter_files.php on line 180 2>)/", $html, $matches); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16945&edit=1

« previous php.bugs (#6723) next »