| @@ 287-289 (lines=3) @@ | ||
| 284 | continue; |
|
| 285 | } |
|
| 286 | if (preg_match("~(^|[\\s\\S])" . substr($keyword, 0, -1) . "$~", $recentOutput, $m)) {
|
|
| 287 | if ($m[1] === '' || !$this->isAlphaNum($m[1])) {
|
|
| 288 | return true; |
|
| 289 | } |
|
| 290 | } |
|
| 291 | } |
|
| 292 | ||
| @@ 296-298 (lines=3) @@ | ||
| 293 | // check all keywords |
|
| 294 | if ($this->a === ' ' || $this->a === "\n") {
|
|
| 295 | if (preg_match('~(^|[\\s\\S])(?:case|else|in|return|typeof)$~', $recentOutput, $m)) {
|
|
| 296 | if ($m[1] === '' || !$this->isAlphaNum($m[1])) {
|
|
| 297 | return true; |
|
| 298 | } |
|
| 299 | } |
|
| 300 | } |
|
| 301 | ||