| 620 | } |
| 621 | |
| 622 | void CodeEditor::toggleComment() |
| 623 | { |
| 624 | const QString comment = languageRepo->singleLineCommentToken(); |
| 625 | |
| 626 | if (!removeInEachLineOfSelection(QRegularExpression("^\\s*(" + comment + " ?)"), false)) |
| 627 | { |
| 628 | addInEachLineOfSelection(QRegularExpression("\\S|^\\s*$"), comment + " "); |
| 629 | } |
| 630 | } |
| 631 | |
| 632 | void CodeEditor::toggleBlockComment() |
| 633 | { |
no test coverage detected