return;
}
- if (c2 == '%')
- {
- /* <% and <%= are recognized by PHP depending on a configuration
- setting. */
- int c3 = phase1_getc (xp);
-
- if (c3 != '=')
- phase1_ungetc (xp, c3);
-
- return;
- }
-
if (c2 == '<')
{
phase1_ungetc (xp, c2);
switch (c)
{
case '?':
- case '%':
{
int c2 = phase1_getc (xp);
if (c2 == '>')
/* We skip all leading white space, but not EOLs. */
if (!(xp->buflen == 0 && (c == ' ' || c == '\t')))
comment_add (xp, c);
- last_was_qmark = (c == '?' || c == '%');
+ last_was_qmark = (c == '?');
}
xp->last_comment_line = lineno;
return '\n';
/* We skip all leading white space, but not EOLs. */
if (!(xp->buflen == 0 && (c == ' ' || c == '\t')))
comment_add (xp, c);
- last_was_qmark = (c == '?' || c == '%');
+ last_was_qmark = (c == '?');
}
xp->last_comment_line = lineno;
return '\n';
return;
case '?':
- case '%':
{
int c2 = phase1_getc (xp);
if (c2 == '>')
{
- /* ?> and %> terminate PHP mode and switch back to HTML
- mode. */
+ /* ?> terminates PHP mode and switches back to HTML mode. */
skip_html (xp);
tp->type = token_type_other;
}
else
{
phase1_ungetc (xp, c2);
- tp->type = (c == '%' ? token_type_operator1 : token_type_other);
+ tp->type = token_type_other;
}
return;
}