MDL-48855 dev: Fix ctags command to handle extra whitespace

This commit is contained in:
Simon Coggins
2015-01-23 10:59:29 +08:00
committed by David Monllao
parent e0ae3519a1
commit 38535ab891
+4 -4
View File
@@ -7,10 +7,10 @@ easily in your editor (eg vim or emacs), you can generate one:
Exuberant ctags (default on Linux, can be compiled on other platforms):
----------------------------------------------------------------------
ctags -R --languages=php --exclude="CVS" --php-kinds=f \
--regex-PHP='/abstract class ([^ ]*)/\1/c/' \
--regex-PHP='/interface ([^ ]*)/\1/c/' \
--regex-PHP='/(public |static |abstract |protected |private )+function ([^ (]*)/\2/f/'
ctags -R --languages=php --php-kinds=f \
--regex-PHP='/abstract +class +([^ ]*)/\1/c/' \
--regex-PHP='/interface +([^ ]*)/\1/c/' \
--regex-PHP='/(public |static |abstract |protected |private )+ *function +([^ (]*)/\2/f/'
BSD ctags (Default on Mac OS X):
-------------------------------