| @@ 942-950 (lines=9) @@ | ||
| 939 | // In the form: /...\\/ so we found the end. |
|
| 940 | break; |
|
| 941 | } |
|
| 942 | } else { |
|
| 943 | $possibleEolChar = substr($string, $next, strlen($this->eolChar)); |
|
| 944 | if ($possibleEolChar === $this->eolChar) { |
|
| 945 | // This is the last token on the line and regular |
|
| 946 | // expressions need to be defined on a single line, |
|
| 947 | // so this is not a regular expression. |
|
| 948 | break; |
|
| 949 | } |
|
| 950 | } |
|
| 951 | } |
|
| 952 | ||
| 953 | if ($chars[$next] !== '/') { |
|
| @@ 974-982 (lines=9) @@ | ||
| 971 | } |
|
| 972 | ||
| 973 | for ($next = ($next + 1); $next < $numChars; $next++) { |
|
| 974 | if ($chars[$next] !== ' ') { |
|
| 975 | break; |
|
| 976 | } else { |
|
| 977 | $possibleEolChar = substr($string, $next, strlen($this->eolChar)); |
|
| 978 | if ($possibleEolChar === $this->eolChar) { |
|
| 979 | // This is the last token on the line. |
|
| 980 | break; |
|
| 981 | } |
|
| 982 | } |
|
| 983 | } |
|
| 984 | ||
| 985 | if (isset($afterTokens[$chars[$next]]) === false) { |
|