From fca144b96b77d2464261ea05f33d7443984d61d1 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Thu, 29 Jan 2015 04:43:53 +0100 Subject: [PATCH] added support for FIXME comments handled as TODO ones. --- cetodo/cetodo.d | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cetodo/cetodo.d b/cetodo/cetodo.d index 9c85027d..269c34e2 100644 --- a/cetodo/cetodo.d +++ b/cetodo/cetodo.d @@ -7,7 +7,7 @@ TODO source code analyzer for Coedit projects/files // TODO [fields] : text `` -- TODO: used to detect that the comment is a "TODO" comment. The keyword is not +- TODO/FIXME: used to detect that the comment is a "TODO" comment. The keyword is not case sensitive. - fields: an optional list of property with a format similar to the execution argument @@ -28,6 +28,8 @@ possible fields include: ``// TODO-cannnotations-p8: annotate the members of the module with @safe and if possible nothrow.`` +``// FIXME-p8: This won't work if all the flags are OR-ed.`` + ## Widget-to-tool IPC: The widget calls the tool with a file list as argument and reads the process @@ -158,8 +160,9 @@ void main(string[] args) // "TODO" while (true) { - if (pos == text.length) break; - if (identifier.strip.toUpper == "TODO") { + if (pos == text.length) break; + auto upIdent = identifier.strip.toUpper; + if (upIdent == "TODO" || upIdent == "FIXME"){ isTodoComment = true; text = text[pos..$]; break; @@ -206,6 +209,7 @@ void main(string[] args) // samples for testing the program as a runnable module with +// fixme-p8: fixme also handled // TODO-cINVALID_because_no_content: // TODO: set this property as const() to set it read only. // TODO-cfeature-sDone: save this property in the inifile.