mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibCpp: Support "FIXME" for comments
This commit is contained in:
parent
621349ed14
commit
1fa976722a
Notes:
sideshowbarker
2024-07-17 10:14:59 +09:00
Author: https://github.com/ferhatgec 🔰 Commit: https://github.com/SerenityOS/serenity/commit/1fa976722a Pull-request: https://github.com/SerenityOS/serenity/pull/14272
@ -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 });
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user