Skip to content

Instantly share code, notes, and snippets.

@tebeka
Created February 1, 2014 17:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tebeka/8755198 to your computer and use it in GitHub Desktop.
Save tebeka/8755198 to your computer and use it in GitHub Desktop.
ctags support for Go
--langdef=Go
--langmap=Go:.go
--regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/d,func/
--regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/d,var/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/d,type/
--regex-Go=/([a-zA-Z_][a-zA-Z0-9_]*)[ \t]*:=/\1/d,var/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment