MFB: Fixed yyleng calculation after the yyless change

This commit is contained in:
Matt Wilmas 2008-06-09 10:20:30 +00:00
parent e96cce5eca
commit 6c13101979
2 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* Generated by re2c 0.13.6.dev on Fri Jun 6 18:30:48 2008 */
/* Generated by re2c 0.13.5 on Mon Jun 09 05:05:01 2008 */
#line 1 "Zend/zend_language_scanner.l"
/*
+----------------------------------------------------------------------+
@ -3310,9 +3310,9 @@ yy181:
/* Go back before last label char, to match in ST_END_HEREDOC state */
yyless(yyleng - 2);
/* Subtract the label/newline length. yyleng must include newline
/* Subtract the remaining label length. yyleng must include newline
* before label, for zend_highlight/strip, tokenizer, etc. */
yyleng -= CG(heredoc_len) + 1;
yyleng -= CG(heredoc_len) - 1;
CG(increment_lineno) = 1; /* For newline before label */
BEGIN(ST_END_HEREDOC);
@ -9396,9 +9396,9 @@ yy967:
/* Go back before last label char, to match in ST_END_NOWDOC state */
yyless(yyleng - 2);
/* Subtract the label/newline length. yyleng must include newline
/* Subtract the remaining label length. yyleng must include newline
* before label, for zend_highlight/strip, tokenizer, etc. */
yyleng -= CG(heredoc_len) + 1;
yyleng -= CG(heredoc_len) - 1;
CG(increment_lineno) = 1; /* For newline before label */
BEGIN(ST_END_NOWDOC);

View File

@ -2532,9 +2532,9 @@ inline_char_handler:
/* Go back before last label char, to match in ST_END_HEREDOC state */
yyless(yyleng - 2);
/* Subtract the label/newline length. yyleng must include newline
/* Subtract the remaining label length. yyleng must include newline
* before label, for zend_highlight/strip, tokenizer, etc. */
yyleng -= CG(heredoc_len) + 1;
yyleng -= CG(heredoc_len) - 1;
CG(increment_lineno) = 1; /* For newline before label */
BEGIN(ST_END_HEREDOC);
@ -2722,9 +2722,9 @@ inline_char_handler:
/* Go back before last label char, to match in ST_END_NOWDOC state */
yyless(yyleng - 2);
/* Subtract the label/newline length. yyleng must include newline
/* Subtract the remaining label length. yyleng must include newline
* before label, for zend_highlight/strip, tokenizer, etc. */
yyleng -= CG(heredoc_len) + 1;
yyleng -= CG(heredoc_len) - 1;
CG(increment_lineno) = 1; /* For newline before label */
BEGIN(ST_END_NOWDOC);