Skip to content

Instantly share code, notes, and snippets.

@kosugi
Created October 29, 2013 17:44
Show Gist options
  • Select an option

  • Save kosugi/7219330 to your computer and use it in GitHub Desktop.

Select an option

Save kosugi/7219330 to your computer and use it in GitHub Desktop.
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l
index d2e7243..31b1d33 100644
--- a/Zend/zend_language_scanner.l
+++ b/Zend/zend_language_scanner.l
@@ -1984,7 +1984,7 @@ inline_html:
return T_COMMENT;
}
-<ST_IN_SCRIPTING>("?>"|"</script"{WHITESPACE}*">"){NEWLINE}? {
+<ST_IN_SCRIPTING>("?>"|"</script"{WHITESPACE}*">") {
zendlval->value.str.val = yytext; /* no copying - intentional */
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
@@ -1993,7 +1993,7 @@ inline_html:
}
-<ST_IN_SCRIPTING>"%>"{NEWLINE}? {
+<ST_IN_SCRIPTING>"%>" {
if (CG(asp_tags)) {
BEGIN(INITIAL);
zendlval->value.str.len = yyleng;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment