For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > March 2005 > cvs: ZendEngine2 / zend_language_scanner.l









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: ZendEngine2 / zend_language_scanner.l
Zeev Suraski

2005-03-07, 3:57 pm

zeev Mon Mar 7 11:48:49 2005 EDT

Modified files:
/ZendEngine2 zend_language_scanner.l
Log:
Revert // </script> patch


http://cvs.php.net/diff.php/ZendEng...3&r2=1.124&ty=u
Index: ZendEngine2/zend_language_scanner.l
diff -u ZendEngine2/zend_language_scanner.l:1.123 ZendEngine2/zend_language_scanner.l:1.124
--- ZendEngine2/zend_language_scanner.l:1.123 Mon Feb 28 21:17:41 2005
+++ ZendEngine2/zend_language_scanner.l Mon Mar 7 11:48:49 2005
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/

-/* $Id: zend_language_scanner.l,v 1.123 2005/03/01 02:17:41 sniper Exp $ */
+/* $Id: zend_language_scanner.l,v 1.124 2005/03/07 16:48:49 zeev Exp $ */

#define yyleng SCNG(yy_leng)
#define yytext SCNG(yy_text)
@@ -1433,11 +1433,11 @@
yymore();
}

-<ST_ONE_LINE_COMMENT>"?"|"%"|">"|"<" {
+<ST_ONE_LINE_COMMENT>"?"|"%"|">" {
yymore();
}

-<ST_ONE_LINE_COMMENT>[^\n\r?%><]+ {
+<ST_ONE_LINE_COMMENT>[^\n\r?%>]+ {
yymore();
}

@@ -1450,15 +1450,6 @@
return T_COMMENT;
}

-<ST_ONE_LINE_COMMENT>"</script>" {
- 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;
-}
-
<ST_ONE_LINE_COMMENT>"?>"|"%>" {
if (CG(asp_tags) || yytext[yyleng-2] != '%') { /* asp comment? */
zendlval->value.str.val = yytext; /* no copying - intentional */
@@ -1507,7 +1498,7 @@
yymore();
}

-<ST_IN_SCRIPTING>("?>"|"</script>"){NEWLINE}? {
+<ST_IN_SCRIPTING>("?>"|"</script"{WHITESPACE}*">"){NEWLINE}? {
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com