|
@@ 567-569 (lines=3) @@
|
| 564 |
|
|
| 565 |
|
// Bash style comments. (#comment\n) |
| 566 |
|
if (Context::isComment($token)) { |
| 567 |
|
while ((++$this->last < $this->len) && ($this->str[$this->last] !== "\n")) { |
| 568 |
|
$token .= $this->str[$this->last]; |
| 569 |
|
} |
| 570 |
|
$token .= "\n"; // Adding the line ending. |
| 571 |
|
return new Token($token, Token::TYPE_COMMENT, Token::FLAG_COMMENT_BASH); |
| 572 |
|
} |
|
@@ 625-627 (lines=3) @@
|
| 622 |
|
if (Context::isComment($token)) { |
| 623 |
|
// Checking if this comment did not end already (```--\n```). |
| 624 |
|
if ($this->str[$this->last] !== "\n") { |
| 625 |
|
while ((++$this->last < $this->len) && ($this->str[$this->last] !== "\n")) { |
| 626 |
|
$token .= $this->str[$this->last]; |
| 627 |
|
} |
| 628 |
|
$token .= "\n"; // Adding the line ending. |
| 629 |
|
} |
| 630 |
|
return new Token($token, Token::TYPE_COMMENT, Token::FLAG_COMMENT_SQL); |