Skip to content

Instantly share code, notes, and snippets.

@greuze
Last active August 29, 2015 14:17
Show Gist options
  • Save greuze/566a254670aebfb55d84 to your computer and use it in GitHub Desktop.
Save greuze/566a254670aebfb55d84 to your computer and use it in GitHub Desktop.
node.js .ctags
--exclude=node_modules
--exclude=site
--exclude=test
--langdef=js
--langmap=js:.js
--regex-js=/([A-Za-z0-9_$]+)[ \t]*[:=][ \t]*function[A-Za-z0-9_$ \t]*\(/\1/f, function, functions/
--regex-js=/\[[ \t]*['"]([A-Za-z0-9_$ ]+)['"][ \t]*\][ \t]*=[ \t]*function[A-Za-z0-9_$ \t]*\(/\1/f, function, functions/
--regex-js=/['"]([A-Za-z0-9_$ ]+)['"][ \t]*:[ \t]*function[A-Za-z0-9_$ \t]*\(/\1/f, function, functions/
--regex-js=/function[ \t]+([A-Za-z0-9_$]+)[ \t]*([^)])/\1/f, function, functions/
--regex-js=/(\b[A-Z][A-Za-z0-9_$]*)[ \t]*=[ \t]*new[ \t]+/\1/v, variable, variables/
--regex-js=/(\b[A-Z][A-Z0-9_$]*)[ \t]*=/\1/c, constant, contants/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment