| @@ 39-47 (lines=9) @@ | ||
| 36 | break; |
|
| 37 | } |
|
| 38 | ||
| 39 | if ($escaped) { |
|
| 40 | if ($incomment == 0) { |
|
| 41 | $newstring .= $string[$n]; |
|
| 42 | } else { |
|
| 43 | $comment .= $string[$n]; |
|
| 44 | } |
|
| 45 | $escaped = false; |
|
| 46 | continue; |
|
| 47 | } |
|
| 48 | ||
| 49 | if ($string[$n] == '\\') { |
|
| 50 | if ($incomment > 0) { |
|
| @@ 49-55 (lines=7) @@ | ||
| 46 | continue; |
|
| 47 | } |
|
| 48 | ||
| 49 | if ($string[$n] == '\\') { |
|
| 50 | if ($incomment > 0) { |
|
| 51 | $comment .= $string[$n]; |
|
| 52 | } |
|
| 53 | $escaped = true; |
|
| 54 | continue; |
|
| 55 | } |
|
| 56 | ||
| 57 | if (!$inquote && $incomment > 0 && $string[$n] == ')') { |
|
| 58 | $incomment--; |
|
| @@ 70-81 (lines=12) @@ | ||
| 67 | continue; |
|
| 68 | } |
|
| 69 | ||
| 70 | if ($string[$n] == '"') { |
|
| 71 | if ($incomment > 0) { |
|
| 72 | $comment .= $string[$n]; |
|
| 73 | } else { |
|
| 74 | if ($inquote) { |
|
| 75 | $inquote = false; |
|
| 76 | } else { |
|
| 77 | $inquote = true; |
|
| 78 | } |
|
| 79 | } |
|
| 80 | continue; |
|
| 81 | } |
|
| 82 | ||
| 83 | if ($incomment == 0) { |
|
| 84 | $newstring .= $string[$n]; |
|