Support <?=
authorZeev Suraski <zeev@php.net>
Fri, 11 Jun 1999 13:56:04 +0000 (13:56 +0000)
committerZeev Suraski <zeev@php.net>
Fri, 11 Jun 1999 13:56:04 +0000 (13:56 +0000)
Zend/zend-scanner.l

index a9e6d2944ad8236090adc89c98369faf966e15e7..116dcf72a853cddf5c83d28d12a71088f4cf3e90 100644 (file)
@@ -993,8 +993,9 @@ ESCAPED_AND_WHITESPACE [\n\t\r #'.:;,()|^&+-/*=%!~<>?@]+
 }
 
 
-<INITIAL>"<%=" {
-       if (CG(asp_tags)) {
+<INITIAL>"<%="|"<?=" {
+       if ((yytext[1]=='%' && CG(asp_tags))
+               || (yytext[1]=='?' && CG(short_tags))) {
                zendlval->value.str.val = yytext; /* no copying - intentional */
                zendlval->value.str.len = yyleng;
                zendlval->type = IS_STRING;