Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6671 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12168 invoked by uid 1010); 22 Dec 2003 10:14:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12114 invoked from network); 22 Dec 2003 10:14:17 -0000 Received: from unknown (HELO euneco-router.localdomain) (213.246.78.106) by pb1.pair.com with SMTP; 22 Dec 2003 10:14:17 -0000 Received: from grafik2 ([192.168.1.30]) by euneco-router.localdomain (8.11.4/8.11.4) with ESMTP id hBMBAgF18437 for ; Mon, 22 Dec 2003 12:10:42 +0100 Date: Mon, 22 Dec 2003 11:14:32 +0100 X-Mailer: The Bat! (v2.01) Personal X-Priority: 3 (Normal) Message-ID: <266743437.20031222111432@vrana.cz> To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------86421C62EC543DD" Subject: Syntax highlight From: vrana@php.net (Jakub Vrana) ------------86421C62EC543DD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hello! Some characters (like [, ], {, } and backslash sequences) in double quote strings are highlighted as keywords even on places where they don't have any special meaning (like [] in "foo[] $a"). I mean highlighted by `php -s` and highlight_* functions. These characters are not highlighted in constant strings (i.e. strings without variables).=20 To behave the same in both cases and to not confuse someone by highlighting characters without special meaning, I am sending this patch. Jakub Vrana ------------86421C62EC543DD Content-Type: text/plain; name="zend_highlit.c.diff.txt" Content-transfer-encoding: base64 Content-Disposition: attachment; filename="zend_highlit.c.diff.txt" SW5kZXg6IHplbmRfaGlnaGxpZ2h0LmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL3JlcG9z aXRvcnkvWmVuZEVuZ2luZTIvemVuZF9oaWdobGlnaHQuYyx2CnJldHJpZXZpbmcgcmV2a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