| @@ 535-537 (lines=3) @@ | ||
| 532 | ||
| 533 | // Bash style comments. (#comment\n) |
|
| 534 | if (Context::isComment($token)) { |
|
| 535 | while ( |
|
| 536 | ++$this->last < $this->len |
|
| 537 | && $this->str[$this->last] !== "\n" |
|
| 538 | ) { |
|
| 539 | $token .= $this->str[$this->last]; |
|
| 540 | } |
|
| @@ 608-610 (lines=3) @@ | ||
| 605 | if (Context::isComment($token)) { |
|
| 606 | // Checking if this comment did not end already (```--\n```). |
|
| 607 | if ($this->str[$this->last] !== "\n") { |
|
| 608 | while ( |
|
| 609 | ++$this->last < $this->len |
|
| 610 | && $this->str[$this->last] !== "\n" |
|
| 611 | ) { |
|
| 612 | $token .= $this->str[$this->last]; |
|
| 613 | } |
|