diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-02-18 01:41:23 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-02-18 01:41:23 +0400 |
commit | a0fe8e5a91024710372625555b7d84dc9726e2da (patch) | |
tree | d56a60ba9a7e37ca1e79c2a2ea3fdf63166791ee /Zend/zend_language_scanner.l | |
parent | 4d6ff31cb31c661e3098d9dc07b156264dd39615 (diff) | |
download | php-git-a0fe8e5a91024710372625555b7d84dc9726e2da.tar.gz |
Use better data structures (incomplete)
Diffstat (limited to 'Zend/zend_language_scanner.l')
-rw-r--r-- | Zend/zend_language_scanner.l | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index 0f120524a5..abe6826321 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -1193,7 +1193,6 @@ NEWLINE ("\r"|"\n"|"\r\n") <ST_LOOKING_FOR_PROPERTY>{LABEL} { yy_pop_state(TSRMLS_C); zend_copy_value(zendlval, yytext, yyleng); - zendlval->type = IS_STRING; return T_STRING; } @@ -1480,7 +1479,6 @@ NEWLINE ("\r"|"\n"|"\r\n") <ST_LOOKING_FOR_VARNAME>{LABEL}[[}] { yyless(yyleng - 1); zend_copy_value(zendlval, yytext, yyleng); - zendlval->type = IS_STRING; yy_pop_state(TSRMLS_C); yy_push_state(ST_IN_SCRIPTING TSRMLS_CC); return T_STRING_VARNAME; @@ -1819,7 +1817,6 @@ inline_html: yyless(yyleng - 3); yy_push_state(ST_LOOKING_FOR_PROPERTY TSRMLS_CC); zend_copy_value(zendlval, (yytext+1), (yyleng-1)); - zendlval->type = IS_STRING; return T_VARIABLE; } @@ -1829,13 +1826,11 @@ inline_html: yyless(yyleng - 1); yy_push_state(ST_VAR_OFFSET TSRMLS_CC); zend_copy_value(zendlval, (yytext+1), (yyleng-1)); - zendlval->type = IS_STRING; return T_VARIABLE; } <ST_IN_SCRIPTING,ST_DOUBLE_QUOTES,ST_HEREDOC,ST_BACKQUOTE,ST_VAR_OFFSET>"$"{LABEL} { zend_copy_value(zendlval, (yytext+1), (yyleng-1)); - zendlval->type = IS_STRING; return T_VARIABLE; } @@ -1858,7 +1853,6 @@ inline_html: <ST_IN_SCRIPTING,ST_VAR_OFFSET>{LABEL} { zend_copy_value(zendlval, yytext, yyleng); - zendlval->type = IS_STRING; return T_STRING; } @@ -2363,7 +2357,6 @@ nowdoc_scan_done: yyleng = YYCURSOR - SCNG(yy_text); zend_copy_value(zendlval, yytext, yyleng - newline); - zendlval->type = IS_STRING; HANDLE_NEWLINES(yytext, yyleng - newline); return T_ENCAPSED_AND_WHITESPACE; } |