Существует также MARK
, FIXME
, !!!
и ???
, например,
// FIXME: this bug needs to be fixed
и
// ???: WTF ???
Вы можете видеть, где они определены в /Applications/Xcode.app/Contents/OtherFrameworks/XcodeEdit.framework/Versions/A/Resources/BaseSupport.xclangspec
(или /Developer/Library/PrivateFrameworks/XcodeEdit.framework/Resources/BaseSupport.xclangspec
для более старых версий Xcode). Предположительно, вы также можете добавить свои собственные теги сюда, если хотите, но я на самом деле не пробовал этого. Вот соответствующий раздел в BaseSupport.xclangspec
:
{
Identifier = "xcode.lang.comment.mark";
Syntax = {
StartChars = "MTF!?";
Match = (
"^MARK:[ \t]+\(.*\)$",
"^\(TODO:[ \t]+.*\)$", // include "TODO: " in the markers list
"^\(FIXME:[ \t]+.*\)$", // include "FIXME: " in the markers list
"^\(!!!:.*\)$", // include "!!!:" in the markers list
"^\(\\?\\?\\?:.*\)$" // include "???:" in the markers list
);
// This is the order of captures. All of the match strings above need the same order.
CaptureTypes = (
"xcode.syntax.mark"
);
Type = "xcode.syntax.comment";
};
},
Эти теги также поддерживаются в текстовом редакторе BBEdit и его бесплатном брате TextWrangler .