mirror of
https://github.com/php/php-src.git
synced 2025-01-02 08:54:04 +08:00
MFB: Fixed yyleng calculation after the yyless change
This commit is contained in:
parent
e96cce5eca
commit
6c13101979
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user