| @@ 166-172 (lines=7) @@ | ||
| 163 | continue; |
|
| 164 | } |
|
| 165 | ||
| 166 | if ($token['code'] === T_COMMENT |
|
| 167 | && substr($token['content'], 0, 2) === '/*' |
|
| 168 | ) { |
|
| 169 | // Multi-line comment. Record it so we can ignore other |
|
| 170 | // comment tags until we get out of this one. |
|
| 171 | $multiLineComment = true; |
|
| 172 | } |
|
| 173 | ||
| 174 | if ($token['code'] === T_COMMENT |
|
| 175 | && $multiLineComment === false |
|
| @@ 251-256 (lines=6) @@ | ||
| 248 | continue; |
|
| 249 | }//end if |
|
| 250 | ||
| 251 | if ($token['code'] === T_COMMENT |
|
| 252 | && substr($token['content'], -2) === '*/' |
|
| 253 | ) { |
|
| 254 | // Multi-line comment is done. |
|
| 255 | $multiLineComment = false; |
|
| 256 | } |
|
| 257 | ||
| 258 | $finalTokens[$newStackPtr] = $token; |
|
| 259 | $newStackPtr++; |
|