| @@ 2932-2951 (lines=20) @@ | ||
| 2929 | $oldWhite = $this->eatWhiteDefault; |
|
| 2930 | $this->eatWhiteDefault = false; |
|
| 2931 | ||
| 2932 | while ($this->match($patt, $m, false)) { |
|
| 2933 | $content[] = $m[1]; |
|
| 2934 | if ($m[2] == "@{") { |
|
| 2935 | $this->count -= strlen($m[2]); |
|
| 2936 | if ($this->interpolation($inter, false)) { |
|
| 2937 | $content[] = $inter; |
|
| 2938 | } else { |
|
| 2939 | $this->count += strlen($m[2]); |
|
| 2940 | $content[] = "@{"; // ignore it |
|
| 2941 | } |
|
| 2942 | } elseif ($m[2] == '\\') { |
|
| 2943 | $content[] = $m[2]; |
|
| 2944 | if ($this->literal($delim, false)) { |
|
| 2945 | $content[] = $delim; |
|
| 2946 | } |
|
| 2947 | } else { |
|
| 2948 | $this->count -= strlen($delim); |
|
| 2949 | break; // delim |
|
| 2950 | } |
|
| 2951 | } |
|
| 2952 | ||
| 2953 | $this->eatWhiteDefault = $oldWhite; |
|
| 2954 | ||
| @@ 3454-3473 (lines=20) @@ | ||
| 3451 | $oldWhite = $this->eatWhiteDefault; |
|
| 3452 | $this->eatWhiteDefault = false; |
|
| 3453 | ||
| 3454 | while ($this->matchString($m, $delim)) { |
|
| 3455 | $content[] = $m[1]; |
|
| 3456 | if ($m[2] == "#{") { |
|
| 3457 | $this->count -= strlen($m[2]); |
|
| 3458 | if ($this->interpolation($inter, false)) { |
|
| 3459 | $content[] = $inter; |
|
| 3460 | } else { |
|
| 3461 | $this->count += strlen($m[2]); |
|
| 3462 | $content[] = "#{"; // ignore it |
|
| 3463 | } |
|
| 3464 | } elseif ($m[2] == '\\') { |
|
| 3465 | $content[] = $m[2]; |
|
| 3466 | if ($this->literal($delim, false)) { |
|
| 3467 | $content[] = $delim; |
|
| 3468 | } |
|
| 3469 | } else { |
|
| 3470 | $this->count -= strlen($delim); |
|
| 3471 | break; // delim |
|
| 3472 | } |
|
| 3473 | } |
|
| 3474 | ||
| 3475 | $this->eatWhiteDefault = $oldWhite; |
|
| 3476 | ||