Permalink
Browse files

Add packages to Go ctags defintion

  • Loading branch information...
1 parent ebbebb3 commit c25f108821314544cf9755f049476414890a2ebb @ascarter committed Jul 2, 2014
Showing with 7 additions and 9 deletions.
  1. +7 −9 src/ctags
View
@@ -1,5 +1,12 @@
--exclude=.git
+--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/
+--regex-Go=/^package[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/p,package/
+
--langdef=CoffeeScript
--langmap=CoffeeScript:.coffee
--regex-CoffeeScript=/^[ \t]*(@?[a-zA-Z$_\.1-9]+)[ \t]*(=|\:)[ \t]*(\(.*\))?[ \t]*(-|=)>/\1/f,function/
@@ -18,9 +25,6 @@
--regex-CoffeeScript=/^[ \t]*xit[ \t]'([^']+)'[ \t]*,[ \t]+[-=]>/disabled: \1/f,function/
--regex-CoffeeScript=/^[ \t]*class[ \t]*([a-zA-Z$_\.1-9]+)[ \t]*/\1/f,function/
---regex-JavaScript=/\$scope[A-Za-z0-9._$]*\.([A-Za-z0-9._$]+?)[ \t]*[:=]/\1/t,ng-scope-variable/
---regex-JavaScript=/\.controller\('([A-Za-z0-9._$]+)'/\1/c,ng-controller/
-
--langdef=css
--langmap=Css:.css
--langmap=Css:+.less
@@ -61,9 +65,3 @@
--langmap=Ruby:+(Rakefile)
--langmap=Php:+.module
-
---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/

0 comments on commit c25f108

Please sign in to comment.