| @@ 77-80 (lines=4) @@ | ||
| 74 | { |
|
| 75 | $found = []; |
|
| 76 | $todo = substr($text,$pos); |
|
| 77 | if(!preg_match('/\S/', $todo, $found, PREG_OFFSET_CAPTURE) || |
|
| 78 | count($found)==0){ |
|
| 79 | return false; |
|
| 80 | } |
|
| 81 | list($chars, $offset) = $found[0]; |
|
| 82 | $this->prePos = $pos + $offset; |
|
| 83 | $next = 'stateNormal'; |
|
| @@ 112-115 (lines=4) @@ | ||
| 109 | ||
| 110 | $found = []; |
|
| 111 | $todo = substr($text,$pos); |
|
| 112 | if(!preg_match('/[\\\\"]/', $todo, $found, PREG_OFFSET_CAPTURE) || |
|
| 113 | count($found)==0){ |
|
| 114 | return false; |
|
| 115 | } |
|
| 116 | list($chars, $offset) = $found[0]; |
|
| 117 | if($chars == '\\'){ |
|
| 118 | return $pos+$offset+2; |
|