Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以支持Lua5.1、LuaJIT中的module的跳转吗? #201

Open
ccagml opened this issue May 10, 2024 · 2 comments
Open

可以支持Lua5.1、LuaJIT中的module的跳转吗? #201

ccagml opened this issue May 10, 2024 · 2 comments

Comments

@ccagml
Copy link

ccagml commented May 10, 2024

aaa.lua

module("AAA", package.seeall);
function test()

end

bbb.lua

AAA.test()

在bbb.lua中点test可以跳转到aaa.lua

@EricCai1991
Copy link

event_define.lua
module("event_define")
EVENT_NAME = “event_name”

event.lua
module("event")
local setmetatable = setmetatable
setmetatable(_M, {__index = require "event_define"})

test.lua
local print = print
local event = require "event"
print(event.EVENT_NAME)

点击EVENT_NAME无法跳转到event_define里面的定义,请问下要怎么操作才行

@ccagml
Copy link
Author

ccagml commented May 15, 2024

@EricCai1991 不清楚啊,感觉这个插件好像没有module关键字的功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants