Skip to content

Instantly share code, notes, and snippets.

@colin-kiegel
Created November 7, 2015 16:58
Show Gist options
  • Save colin-kiegel/e6bb194542cb73411dd9 to your computer and use it in GitHub Desktop.
Save colin-kiegel/e6bb194542cb73411dd9 to your computer and use it in GitHub Desktop.
~/.ctags for PHP
--recurse
--languages=PHP
--exclude=.svn
--exclude=.git
--exclude="*/_*cache/*"
--exclude="*/_*logs{0,1}/*"
--exclude="*/_*data/*"
--totals=yes
--tag-relative=yes
--PHP-kinds=+cfd
--regex-PHP=/abstract\s+class\s+([^ ]+)/\1/c/
--regex-PHP=/interface\s+([^ ]+)/\1/c/
--regex-PHP=/trait ([^ ]*)/\1/c/
--regex-PHP=/const\s+([^ =]+)/\1/d/
--regex-PHP=/(public\s+|static\s+|protected\s+|private\s+)\$([^ =]+)/\2/p/
--regex-PHP=/final\s+(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