From: Zeev Suraski Date: Mon, 7 Mar 2005 16:48:49 +0000 (+0000) Subject: Revert // patch X-Git-Tag: RELEASE_0_3~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=118b7b567a43612ad08a61d2f0b579f2f18f6c54;p=php Revert // patch --- diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index 694ef11704..4482214082 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -1433,11 +1433,11 @@ NEWLINE ("\r"|"\n"|"\r\n") yymore(); } -"?"|"%"|">"|"<" { +"?"|"%"|">" { yymore(); } -[^\n\r?%><]+ { +[^\n\r?%>]+ { yymore(); } @@ -1450,15 +1450,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 */ @@ -1507,7 +1498,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;