Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Teach ctags how to Go
  • Loading branch information
mislav committed Feb 6, 2014
1 parent e5f4ca7 commit efb2527
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ctags
Expand Up @@ -2,9 +2,13 @@
--exclude=log
--exclude=vendor
--exclude=bundle
-R
--tag-relative=yes
--exclude=*.min.js
--exclude=jquery.*.js
--exclude=jquery-*.js
--languages=-html
--languages=-html,sql

--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/

0 comments on commit efb2527

Please sign in to comment.