From ba31cb7b88c196b463353ba8fc2ea3d74fcf2162 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 7 Mar 2005 16:48:12 +0000 Subject: [PATCH] Revert // patch --- Zend/zend_language_scanner.l | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index 91cd66dc0f..d6f17a2111 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -1432,11 +1432,11 @@ NEWLINE ("\r"|"\n"|"\r\n") yymore(); } -"?"|"%"|">"|"<" { +"?"|"%"|">" { yymore(); } -[^\n\r?%><]+ { +[^\n\r?%>]+ { yymore(); } @@ -1449,15 +1449,6 @@ NEWLINE ("\r"|"\n"|"\r\n") return T_COMMENT; } -"" { - zendlval->value.str.val = yytext; /* no copying - intentional */ - zendlval->value.str.len = yyleng; - zendlval->type = IS_STRING; - yyless(yyleng-9); - BEGIN(ST_IN_SCRIPTING); - return T_COMMENT; -} - "?>"|"%>" { if (CG(asp_tags) || yytext[yyleng-2] != '%') { /* asp comment? */ zendlval->value.str.val = yytext; /* no copying - intentional */ @@ -1506,7 +1497,7 @@ NEWLINE ("\r"|"\n"|"\r\n") yymore(); } -("?>"|""){NEWLINE}? { +("?>"|""){NEWLINE}? { zendlval->value.str.val = yytext; /* no copying - intentional */ zendlval->value.str.len = yyleng; zendlval->type = IS_STRING; -- 2.40.0