Skip to content

Instantly share code, notes, and snippets.

@wolever
Last active August 29, 2015 14:16
Show Gist options
  • Save wolever/273a3c448a6f9a2f21eb to your computer and use it in GitHub Desktop.
Save wolever/273a3c448a6f9a2f21eb to your computer and use it in GitHub Desktop.
Angular definitions for ctags (http://ctags.sourceforge.net/)
# Add the following lines to ~/.ctags to capture Angular definitions like `ngModule.service('MyService', …)`.
# See also: http://ctags.sourceforge.net/
--regex-javascript=/\.module\(\s*['"]([A-Za-z0-9._$]+)['"]/\1/c,ng-module/
--regex-javascript=/\.controller\(\s*['"]([A-Za-z0-9._$]+)['"]/\1/c,ng-controller/
--regex-javascript=/\.factory\(\s*['"]([A-Za-z0-9._$]+)['"]/\1/c,ng-factory/
--regex-javascript=/\.directive\(\s*['"]([A-Za-z0-9._$]+)['"]/\1/c,ng-directive/
--regex-javascript=/\.service\(\s*['"]([A-Za-z0-9._$]+)['"]/\1/c,ng-service/
--regex-javascript=/\.filter\(\s*['"]([A-Za-z0-9._$]+)['"]/\1/c,ng-filter/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment