Skip to content

Instantly share code, notes, and snippets.

@chrismarksus
Forked from xzj/.ctags
Created January 12, 2016 19:23
Show Gist options
  • Save chrismarksus/0c170420fe652f0e8504 to your computer and use it in GitHub Desktop.
Save chrismarksus/0c170420fe652f0e8504 to your computer and use it in GitHub Desktop.
my .ctags syntax file for Groovy language (exuberant-ctags)
--langdef=groovy
--langmap=groovy:.groovy
--regex-groovy=/^[ \t]*[(private|public|protected) ( \t)]*def[ \t]+([A-Za-z0-9_]+)[ \t]*\(/\1/f,function,functions/
--regex-groovy=/^[ \t]*private def[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/v,private,private variables/
--regex-groovy=/^[ \t]*public def[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/u,public,public variables/
--regex-groovy=/^[ \t]*[abstract ( \t)]*[(private|public) ( \t)]*class[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/c,class,classes/
--regex-groovy=/^[ \t]*[abstract ( \t)]*[(private|public) ( \t)]*enum[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/c,class,classes/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment