> 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
--
PHP Internals - PHP
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...