Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save patrickdlogan/270419 to your computer and use it in GitHub Desktop.
Save patrickdlogan/270419 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Derived from http://weierophinney.net/matthew/archives/134-exuberant-ctags-with-PHP-in-Vim.html
exec etags \
--languages=PHP \
--langmap=PHP:+.phpt \
-h ".php" -R \
--exclude="\.git" \
--totals=yes \
--tag-relative=yes \
--PHP-kinds=+cdf \
--regex-PHP='/abstract class ([^ ]*)/\1/c/' \
--regex-PHP='/interface ([^ ]*)/\1/c/' \
--regex-PHP='/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/'
@omigafu
Copy link

omigafu commented Jan 6, 2017

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment