Skip to content

Instantly share code, notes, and snippets.

@iolloyd
Created January 8, 2014 08:49
Show Gist options
  • Save iolloyd/8313749 to your computer and use it in GitHub Desktop.
Save iolloyd/8313749 to your computer and use it in GitHub Desktop.
go compatibility for ctags
--langdef=Go
--langmap=Go:.go
--regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/f,func/
--regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/v,var/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/t,type/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment