mirror of
https://github.com/golang/go
synced 2024-11-24 08:00:12 -07:00
More Xcode support.
Recognize special comments starting with TODO or BUG. R=r CC=golang-dev https://golang.org/cl/183095
This commit is contained in:
parent
1d5e1f578c
commit
bcabc99a92
@ -261,4 +261,33 @@
|
||||
};
|
||||
},
|
||||
|
||||
// This rule recognizes special comments markers and adds them
|
||||
// to the list of file markers at the top of the editor window.
|
||||
// This overrides the markers specified in
|
||||
// /Developer/Library/PrivateFrameworks/XcodeEdit.framework/Versions/A/Resources/BaseSupport.xclangspec
|
||||
// and appears to apply them to all languages. Thus, for now
|
||||
// "inherit" the existing markers here for backward-compatibility.
|
||||
{
|
||||
Identifier = "xcode.lang.comment.mark";
|
||||
Syntax = {
|
||||
StartChars = "BMTF!?";
|
||||
Match = (
|
||||
// Go-specific markers
|
||||
"^\(BUG.*$\)$", // inlude "BUG" in the markers list
|
||||
"^\(TODO.*$\)$", // inlude "TODO" in the markers list
|
||||
// inherited markers
|
||||
"^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";
|
||||
};
|
||||
},
|
||||
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user