Re: Editor Tags
Re: Editor Tags
- Subject: Re: Editor Tags
- From: G S <email@hidden>
- Date: Mon, 26 Apr 2010 10:14:15 -0700
> In the editor you can use //TODO:, // FIXME:, //MARK:, !!!:, ???:. Anyone
> know where these are defined and can I add my own.
>
> In /Developer/Library/PrivateFrameworks/DVTFoundation.framework/Resources/BaseSupport.xclangspec
Hey Chris, thanks. Is that the best place? In my notes I have
/Developer/Library/PrivateFrameworks/XcodeEdit.framework/Resources/BaseSupport.xclangspec,
and there's a little more explanation in there:
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";
};
Gavin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden