Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Go ctags support

* Created helper script to regenerate tags file
* Create definition for standard library Go files
* Index exported functions only
  • Loading branch information...
commit c4d8c18a561ada308313376286321e26e739471b 1 parent 254427b
@ascarter authored
View
17,713 Contents/Completion Data/Go/Go Standard Library.tags
0 additions, 17,713 deletions not shown
View
17 Contents/Resources/maketags
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# Run BBEdit maketags on Go standard library (exported classes only)
+
+CTAGS=/Applications/BBEdit.app/Contents/Helpers/ctags
+TAGFILE="../Completion Data/Go/Go Standard Library.tags"
+
+if [ -d $GOROOT ]; then
+ $CTAGS --recurse --langdef=GoStdLib --langmap=GoStdLib:.go \
+ --regex-GoStdLib="/func([ \t]+\([^)]+\))?[ \t]+([A-Z][a-zA-Z0-9_]+)/\2/f,func/" \
+ --regex-GoStdLib="/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/v,var/" \
+ --regex-GoStdLib="/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/t,type/" \
+ --languages=GoStdLib -f gostdlib.tags $GOROOT/src/pkg
+ if [ -e ./gostdlib.tags ]; then
+ mv ./gostdlib.tags "${TAGFILE}"
+ fi
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.