Skip to content

Instantly share code, notes, and snippets.

@mipmip
Created December 16, 2014 14:01
Show Gist options
  • Save mipmip/6e1817a4fbb598e7973b to your computer and use it in GitHub Desktop.
Save mipmip/6e1817a4fbb598e7973b to your computer and use it in GitHub Desktop.
Extend ruby ctags to make it recognize tasks and namespaces from Rakefiles and Capistrano files.
--regex-Ruby=/(^|^[[:blank:]]*)task[ \t\:']*([A-Za-z0-9_]*)/\2/t,tasks/
--regex-Ruby=/(^|^[[:blank:]]*)namespace[ \t\:]*([A-Za-z0-9_]*)/\2/n,namespaces/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment