| @@ 238-247 (lines=10) @@ | ||
| 235 | $this->stream->next(); |
|
| 236 | $this->commentOpen = true; |
|
| 237 | goto start; |
|
| 238 | } elseif($this->commentOpen) { |
|
| 239 | if($ord === AsciiChar::NULL() || $ord === AsciiChar::LINE_FEED) { |
|
| 240 | $this->commentOpen = false; |
|
| 241 | goto start; |
|
| 242 | } else { |
|
| 243 | $this->stream->next(); |
|
| 244 | $this->commentOpen = true; |
|
| 245 | goto start; |
|
| 246 | } |
|
| 247 | } elseif(!$this->commentOpen) { |
|
| 248 | if($this->multiLineOpened) { |
|
| 249 | if($ord === AsciiChar::CLOSE_BRACKET) { |
|
| 250 | $this->multiLineOpened = false; |
|
| @@ 283-287 (lines=5) @@ | ||
| 280 | } elseif($this->commentOpen === true && $ord !== AsciiChar::LINE_FEED) { |
|
| 281 | $this->commentOpen = true; |
|
| 282 | goto start; |
|
| 283 | } elseif($this->commentOpen === true && ($ord === AsciiChar::LINE_FEED || $ord === AsciiChar::NULL)) { |
|
| 284 | $this->stream->previous(); |
|
| 285 | $this->commentOpen = false; |
|
| 286 | goto start; |
|
| 287 | } else { |
|
| 288 | // ignore whitespace |
|
| 289 | if($ord === AsciiChar::SPACE || $ord === AsciiChar::HORIZONTAL_TAB) { |
|
| 290 | goto start; |
|