| @@ 578-580 (lines=3) @@ | ||
| 575 | ||
| 576 | // Bash style comments. (#comment\n) |
|
| 577 | if (Context::isComment($token)) { |
|
| 578 | while (++$this->last < $this->len |
|
| 579 | && $this->str[$this->last] !== "\n" |
|
| 580 | ) { |
|
| 581 | $token .= $this->str[$this->last]; |
|
| 582 | } |
|
| 583 | // Include trailing \n as whitespace token |
|
| @@ 666-668 (lines=3) @@ | ||
| 663 | if (Context::isComment($token, $end)) { |
|
| 664 | // Checking if this comment did not end already (```--\n```). |
|
| 665 | if ($this->str[$this->last] !== "\n") { |
|
| 666 | while (++$this->last < $this->len |
|
| 667 | && $this->str[$this->last] !== "\n" |
|
| 668 | ) { |
|
| 669 | $token .= $this->str[$this->last]; |
|
| 670 | } |
|
| 671 | } |
|