Skip to content

Commit d86c2c4

Browse files
committed
change config.lua to config,json
#1607
1 parent b18329c commit d86c2c4

File tree

27 files changed

+134
-107
lines changed

27 files changed

+134
-107
lines changed

main.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ local function getValue(value)
1616
end
1717

1818
local function loadArgs()
19+
---@type string?
1920
local lastKey
2021
for _, v in ipairs(arg) do
21-
---@type string
22+
---@type string?
2223
local key, tail = v:match '^%-%-([%w_]+)(.*)$'
2324
local value
2425
if key then

meta/3rd/Cocos4.0/config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "Cocos",
3+
"files": ["cocos"],
4+
"config": {
5+
"Lua.runtime.version": "LuaJIT"
6+
}
7+
}

meta/3rd/Cocos4.0/config.lua

Lines changed: 0 additions & 5 deletions
This file was deleted.

meta/3rd/Defold/config.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name" : "Defold",
3+
"files" : ["game.project", "*%.script", "*%.gui_script"],
4+
"config" : {
5+
"Lua.runtime.version" : "Lua 5.1",
6+
"Lua.workspace.library" : [".internal"],
7+
"Lua.workspace.ignoreDir" : [".internal"],
8+
"Lua.diagnostics.globals" : [
9+
"on_input",
10+
"on_message",
11+
"init",
12+
"update",
13+
"final"
14+
],
15+
"files.associations" : {
16+
"*.script" : "lua",
17+
"*.gui_script" : "lua",
18+
"*.render_script" : "lua",
19+
"*.editor_script" : "lua"
20+
}
21+
}
22+
}

meta/3rd/Defold/config.lua

Lines changed: 0 additions & 20 deletions
This file was deleted.

meta/3rd/Jass/config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"words" : ["jass%.common"],
3+
"config" : {
4+
"Lua.runtime.version": "Lua 5.3"
5+
}
6+
}

meta/3rd/Jass/config.lua

Lines changed: 0 additions & 4 deletions
This file was deleted.

meta/3rd/OpenResty/config.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"files" : [
3+
"resty/redis%.lua",
4+
"lib/resty/.*%.lua",
5+
"src/resty/.*%.lua",
6+
"lib/ngx.*/.*%.lua",
7+
"src/ngx.*/.*%.lua"
8+
],
9+
"words" : [
10+
"resty%.%w+",
11+
"ngx%.%w+"
12+
],
13+
"config" : {
14+
"Lua.runtime.version" : "LuaJIT",
15+
"Lua.diagnostics.globals" : [
16+
"ngx"
17+
]
18+
}
19+
}

meta/3rd/OpenResty/config.lua

Lines changed: 0 additions & 19 deletions
This file was deleted.

meta/3rd/busted/config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"config": {
3+
"Lua.workspace.library": [
4+
"${3rd}/luassert/library"
5+
]
6+
}
7+
}

0 commit comments

Comments
 (0)