mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 19:15:09 +00:00
LibCpp: Support "FIXME" for comments
This commit is contained in:
parent
621349ed14
commit
1fa976722a
1 changed files with 1 additions and 1 deletions
|
@ -1017,7 +1017,7 @@ Vector<CodeComprehension::TodoEntry> Parser::get_todo_entries() const
|
||||||
Vector<CodeComprehension::TodoEntry> ret;
|
Vector<CodeComprehension::TodoEntry> ret;
|
||||||
for (auto& token : m_tokens) {
|
for (auto& token : m_tokens) {
|
||||||
if (token.type() == Token::Type::Comment) {
|
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 });
|
ret.append({ token.text(), m_filename, token.start().line, token.start().column });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue