LibCpp: Support "FIXME" for comments

This commit is contained in:
Ferhat Geçdoğan 2022-06-13 22:07:36 +03:00 committed by Linus Groh
parent 621349ed14
commit 1fa976722a
Notes: sideshowbarker 2024-07-17 10:14:59 +09:00

View File

@ -1017,7 +1017,7 @@ Vector<CodeComprehension::TodoEntry> Parser::get_todo_entries() const
Vector<CodeComprehension::TodoEntry> ret;
for (auto& token : m_tokens) {
if (token.type() == Token::Type::Comment) {
if (token.text().contains("TODO")) {
if (token.text().contains("TODO") || token.text().contains("FIXME")) {
ret.append({ token.text(), m_filename, token.start().line, token.start().column });
}
}