@@ 67-69 (lines=3) @@ | ||
64 | preg_match_all(self::REGEX_HTML, $s, $m, $rFlag); |
|
65 | foreach ($m as $match) { |
|
66 | if ($mode & self::FIND_BARDOLLAR && isset($match[2])) { |
|
67 | if ($match[2][1] != $pos) |
|
68 | $this->nodes[] = new Text\Plain( |
|
69 | substr($s, $pos, $match[2][1] - $pos), $mode); |
|
70 | $this->nodes[] = new Text\Complex(substr($match[2][0], 1, -1)); |
|
71 | $pos = $match[2][1] + strlen($match[2][0]); |
|
72 | } elseif ($mode & self::FIND_DOLLARVAR) { |
|
@@ 74-76 (lines=3) @@ | ||
71 | $pos = $match[2][1] + strlen($match[2][0]); |
|
72 | } elseif ($mode & self::FIND_DOLLARVAR) { |
|
73 | if ($match[1][1] > 0 && $s[$match[1][1] - 1] == '\\') continue; |
|
74 | if ($match[1][1] != $pos) |
|
75 | $this->nodes[] = new Text\Plain( |
|
76 | substr($s, $pos, $match[1][1] - $pos), $mode); |
|
77 | $this->nodes[] = new Text\SimpleVar($match[1][0]); |
|
78 | $pos = $match[1][1] + strlen($match[1][0]); |
|
79 | } |