Skip to content

Instantly share code, notes, and snippets.

@erickpatrick
Last active June 3, 2021 22:08
Show Gist options
  • Save erickpatrick/c329c0a81f286d148d0a043708c9ee46 to your computer and use it in GitHub Desktop.
Save erickpatrick/c329c0a81f286d148d0a043708c9ee46 to your computer and use it in GitHub Desktop.
~/.ctags for PHP
--recurse=yes
--exclude=.git
--exclude=vendor/*
--exclude=node_modules/*
--exclude=db/*
--exclude=log/*
--exclude="*/_*cache/*"
--exclude="*/_*logs{0,1}/*"
--exclude="*/_*data/*"
--fields=+laimS
--languages=php
--langmap=php:.engine.inc.module.theme.install.php
--totals=yes
--tag-relative=yes
--PHP-kinds=+cfit-va
--tag-relative=yes
--regex-PHP=/abstract class ([^ ]*)/\1/c/
--regex-PHP=/interface ([^ ]*)/\1/c/
--regex-PHP=/trait ([^ ]*)/\1/c/
--regex-PHP=/(public |static |abstract |protected |private )+ function +([^ \(]*)/\2/f/
--regex-php=/^[ \t]*trait[ \t]+([a-z0_9_]+)/\1/t,traits/i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment