脚本宝典收集整理的这篇文章主要介绍了php – 我的.ctags文件有什么问题?,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
-R --exclude=.svn --tag-relative=yes --PHP-kinds=+CFpd --regex-PHP=/abstract\s+class\s+([^ ]+)/\1/c/ --regex-PHP=/interface\s+([^ ]+)/\1/c/ --regex-PHP=/(public\s+|static\s+|PRotected\s+|private\s+)\$([^ =]+)/\2/p/ --regex-PHP=/const\s+([^ =]+)/\1/d/ --regex-PHP=/final\s+(public\s+|static\s+|abstract\s+|protected\s+|private\s+)function\s+\&?\s*([^ (]+)/\2/f/
但是,我收到此错误:
$ctags ctags: Warning: Unsupported parameter 'p' for --PHP-kinds option
从实验中我看到p需要定义,实际上它是在文件的第七行定义的.那么为什么会抛出错误呢?
编辑:
ctags文件来自from here,它是从this terrific article链接的.
这是我配置的输出:
$ctags --version ctags: Warning: Unsupported parameter 'p' for --PHP-kinds option Exuberant Ctags 5.6,Copyright (C) 1996-2004 Darren Hiebert Compiled: Jan 6 2007,02:10:54 Addresses: <dhiebert@users.sourceforge.net>,http://ctags.sourceforge.net Optional compiled features: +wildcards,+regex $cat ~/.ctags -R --exclude=.svn --tag-relative=yes --regex-PHP=/abstract\s+class\s+([^ ]+)/\1/c/ --regex-PHP=/interface\s+([^ ]+)/\1/c/ --regex-PHP=/(public\s+|static\s+|protected\s+|private\s+)\$([^ \t=]+)/\2/p/ --regex-PHP=/const\s+([^ \t=]+)/\1/d/ --regex-PHP=/final\s+(public\s+|static\s+|abstract\s+|protected\s+|private\s+)function\s+\&?\s*([^ (]+)/\2/f/ --PHP-kinds=+cpDF $ctags ctags: Warning: Unsupported parameter 'p' for --PHP-kinds option $
--regex-PHP=/(public\s+|static\s+|protected\s+|private\s+)\$([^ =]+)/\2/p/
在你的情况下为PHP定义’p’类型.如果你搬家
--PHP-kinds=+cfpd
注意:这是我的ctags版本信息:
$ctags --version Exuberant Ctags 5.8,Copyright (C) 1996-2009 Darren Hiebert Compiled: Apr 19 2012,11:31:19 Addresses: <dhiebert@users.sourceforge.net>,http://ctags.sourceforge.net Optional compiled features: +wildcards,+regex
以上是脚本宝典为你收集整理的php – 我的.ctags文件有什么问题?全部内容,希望文章能够帮你解决php – 我的.ctags文件有什么问题?所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。