| @@ 545-547 (lines=3) @@ | ||
| 542 | ||
| 543 | // Bash style comments. (#comment\n) |
|
| 544 | if (Context::isComment($token)) { |
|
| 545 | while ( |
|
| 546 | ++$this->last < $this->len |
|
| 547 | && $this->str[$this->last] !== "\n" |
|
| 548 | ) { |
|
| 549 | $token .= $this->str[$this->last]; |
|
| 550 | } |
|
| @@ 614-616 (lines=3) @@ | ||
| 611 | if (Context::isComment($token)) { |
|
| 612 | // Checking if this comment did not end already (```--\n```). |
|
| 613 | if ($this->str[$this->last] !== "\n") { |
|
| 614 | while ( |
|
| 615 | ++$this->last < $this->len |
|
| 616 | && $this->str[$this->last] !== "\n" |
|
| 617 | ) { |
|
| 618 | $token .= $this->str[$this->last]; |
|
| 619 | } |
|