Skip to content

Instantly share code, notes, and snippets.

@smerrill
Forked from cwaring/ctags config for Drupal
Created May 6, 2011 19:42
Show Gist options
  • Save smerrill/959638 to your computer and use it in GitHub Desktop.
Save smerrill/959638 to your computer and use it in GitHub Desktop.
ctags --langmap=php:.engine.inc.module.theme.php.install.test.profile \
--php-kinds=cdfi \
--languages=php \
--recurse \
--exclude="\.git" \
--exclude="\.svn" \
--exclude="\.hg" \
--exclude="\.bzr" \
--exclude="\CVS" \
--totals=yes \
--tag-relative=yes \
--regex-PHP='/abstract\s+class\s+([^ ]+)/\1/c/' \
--regex-PHP='/interface\s+([^ ]+)/\1/c/' \
--regex-PHP='/(public\s+|static\s+|abstract\s+|protected\s+|private\s+)function\s+\&?\s*([^ (]+)/\2/f/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment