Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13827 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2289 invoked by uid 1010); 12 Nov 2004 04:31:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2248 invoked by uid 1007); 12 Nov 2004 04:31:44 -0000 Message-ID: <20041112043144.2179.qmail@pb1.pair.com> To: internals@lists.php.net References: <20041111033645.94072.qmail@pb1.pair.com> <20041111113902.46337.qmail@pb1.pair.com> Date: Fri, 12 Nov 2004 15:31:50 +1100 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-Posted-By: 144.132.79.80 Subject: Re: zend_highlight routine From: aidan@php.net ("Aidan Lister") Hi Robert, I think you'll find it's Appendix P. I recently documented all the PHP 5 additions to that page, my problem is not getting a list of tokens, http://lxr.php.net/source/php-src/ext/tokenizer/tokenizer.c#167 It's getting a list of tokens for which token.type IS_NULL. Thanks, though... Aidan "Robert Janeczek" wrote in message news:20041111113902.46337.qmail@pb1.pair.com... >> My problem is the token2color method, I'm not sure which tokens are >> classed as keywords. At the moment I've just guessed as many as I >> could think of, it's a bit ugly - presuming there is an easier way to >> do it. > > Appendix N. List of Parser Tokens in php manual > > rash