aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-12-30 15:30:57 -0800
committerRobert Griesemer <gri@golang.org>2009-12-30 15:30:57 -0800
commitbcabc99a92f3ff7c04cf17c7467eedecfccc9cc9 (patch)
tree746b0da53cc81b58f70e6f87f5a714fca267a444
parent1d5e1f578cd14a15cbdaa09086302ffebda1462d (diff)
downloadgo-bcabc99a92f3ff7c04cf17c7467eedecfccc9cc9.tar.gz
go-bcabc99a92f3ff7c04cf17c7467eedecfccc9cc9.zip
More Xcode support.
Recognize special comments starting with TODO or BUG. R=r CC=golang-dev https://golang.org/cl/183095
-rw-r--r--misc/xcode/go.xclangspec29
1 files changed, 29 insertions, 0 deletions
diff --git a/misc/xcode/go.xclangspec b/misc/xcode/go.xclangspec
index 11b46c47b2..e515564dad 100644
--- a/misc/xcode/go.xclangspec
+++ b/misc/xcode/go.xclangspec
@@ -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";
+ };
+ },
+
)