我的症狀是相同的Vim ctags behaves strangely用vim檢查LUA CTAGS
因此,我安裝了universal-ctags
,而不是老exuberant-ctags
。 但它仍然無法正常工作。
但有差別不大
沒有模塊功能的ctags與<c-]>
工作:
function rmsprop(x, dx, lr, alpha, epsilon, state)
if not state.m then
state.m = x.new(#x):zero()
state.tmp = x.new(#x)
end
-- calculate new (leaky) mean squared values
state.m:mul(alpha)
state.m:addcmul(1.0-alpha, dx, dx)
-- perform update
state.tmp:sqrt(state.m):add(epsilon)
x:addcdiv(-lr, dx, state.tmp)
end
然而,模塊功能不能正常工作(與:):
function DenseCapModel:setTestArgs(kwargs)
self.nets.localization_layer:setTestArgs{
nms_thresh = utils.getopt(kwargs, 'rpn_nms_thresh', 0.7),
max_proposals = utils.getopt(kwargs, 'num_proposals', 1000)
}
self.opt.final_nms_thresh = utils.getopt(kwargs, 'final_nms_thresh', 0.3)
end
但有有點討厭,:ta /setTestArgs
的作品。
我一直在挖它很長一段時間,但並不滿意。 也試過, https://vi.stackexchange.com/questions/2790/vim-lua-and-ctags,這不是一般情況下 https://github.com/XuJiandong/lua-ctags就像ctags一樣工作。 :ta /setTestArgs
沒問題,但是<c-]>
。
僅供參考,我使用vim來檢查服務器中的TORCH7代碼。任何替代方法檢查火炬代碼更容易將幫助。 ZeroBrane Studio似乎在客戶端工作。