diff options
author | Ferhat Geçdoğan <54369961+ferhatgec@users.noreply.github.com> | 2022-06-13 22:07:36 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-14 19:07:00 +0100 |
commit | 1fa976722a2792a653db60d4a14cdcde1a1421fc (patch) | |
tree | ba675a72801909842c4d3fe109e2bdf15dd07193 | |
parent | 621349ed143c7bde6570958c49f0c962154cc2c1 (diff) | |
download | serenity-1fa976722a2792a653db60d4a14cdcde1a1421fc.zip |
LibCpp: Support "FIXME" for comments
-rw-r--r-- | Userland/Libraries/LibCpp/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCpp/Parser.cpp b/Userland/Libraries/LibCpp/Parser.cpp index 61ac4f350c..d44a91ce12 100644 --- a/Userland/Libraries/LibCpp/Parser.cpp +++ b/Userland/Libraries/LibCpp/Parser.cpp @@ -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 }); } } |