ctags 无法识别 Ruby 模块文件中的常量
我正在使用 ctags 生成 ruby 的标记文件。看起来它无法识别模块中定义的常量。
例如:
module Foo
MAX_LEN = 15
end
看起来 MAX_LEN 不会被索引。我在 VIM 中的 MAX_LEN
处按 Ctrl-],它显示 未找到标记:MAX_LEN
。
I'm using ctags to generate the tag file for ruby. Looks like it can't recognize the constants defined in a module.
For example:
module Foo
MAX_LEN = 15
end
Looks like the MAX_LEN will not be indexed. I hit Ctrl-] at MAX_LEN
in VIM, it says tag not found: MAX_LEN
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最新的通用 Ctags (https://ctags.io/) 可以提取常量。
The lattest Universal Ctags (https://ctags.io/) can extract constants.