First, I just realized while going through the scanner code after the re2c
changes that there's a bug with heredoc handling (from my code changes last
year, oops) on something like:
Patch for 5.2 with just that fix:
For 5.3 and HEAD, I fixed problems with yyleng (some would only affect
highlighting, tokenizer ext, etc.) Double quoted heredocs with tabs/spaces
wouldn't work right (ex: <<< "EOT"). Updated some comments. And this
rule that was added...
/* do nothing */
Would lose that whitespace in highlighter, etc. or miss counting line
numbers. Speaking of line numbers, I also removed the
CG(comment_start_line) variable since I can't see that it's needed anywhere,
and CG(zend_lineno) works for the "Unterminated comment..." warning (which
isn't working right now anyway :-)).
In HEAD I also tidied up the LNUM/HNUM rules which lost their tabs and Z_*
macros a year ago (v1.164).