summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-23 19:52:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-23 19:52:57 +0800
commitd86c2c46e8985da8899ae77d4c6f54f5b902cd71 (patch)
tree7d4adab36450f59cd3e9456086614120176731fc /meta
parentb18329cea47f2de9c50abefecaccf248c16aa398 (diff)
downloadlua-language-server-d86c2c46e8985da8899ae77d4c6f54f5b902cd71.zip
change `config.lua` to `config,json`
#1607
Diffstat (limited to 'meta')
-rw-r--r--meta/3rd/Cocos4.0/config.json7
-rw-r--r--meta/3rd/Cocos4.0/config.lua5
-rw-r--r--meta/3rd/Defold/config.json22
-rw-r--r--meta/3rd/Defold/config.lua20
-rw-r--r--meta/3rd/Jass/config.json6
-rw-r--r--meta/3rd/Jass/config.lua4
-rw-r--r--meta/3rd/OpenResty/config.json19
-rw-r--r--meta/3rd/OpenResty/config.lua19
-rw-r--r--meta/3rd/busted/config.json7
-rw-r--r--meta/3rd/busted/config.lua5
-rw-r--r--meta/3rd/example/config.json22
-rw-r--r--meta/3rd/example/config.lua20
-rw-r--r--meta/3rd/lfs/config.json9
-rw-r--r--meta/3rd/lfs/config.lua7
-rw-r--r--meta/3rd/love2d/config.json7
-rw-r--r--meta/3rd/love2d/config.lua5
-rw-r--r--meta/3rd/lovr/config.json7
-rw-r--r--meta/3rd/lovr/config.lua5
-rw-r--r--meta/3rd/luaecs/config.json4
-rw-r--r--meta/3rd/luaecs/config.lua2
-rw-r--r--meta/3rd/luassert/config.json3
-rw-r--r--meta/3rd/luassert/config.lua1
-rw-r--r--meta/3rd/skynet/config.json4
-rw-r--r--meta/3rd/skynet/config.lua2
24 files changed, 117 insertions, 95 deletions
diff --git a/meta/3rd/Cocos4.0/config.json b/meta/3rd/Cocos4.0/config.json
new file mode 100644
index 00000000..6330efb7
--- /dev/null
+++ b/meta/3rd/Cocos4.0/config.json
@@ -0,0 +1,7 @@
+{
+ "name": "Cocos",
+ "files": ["cocos"],
+ "config": {
+ "Lua.runtime.version": "LuaJIT"
+ }
+}
diff --git a/meta/3rd/Cocos4.0/config.lua b/meta/3rd/Cocos4.0/config.lua
deleted file mode 100644
index 85c24a08..00000000
--- a/meta/3rd/Cocos4.0/config.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-name = 'Cocos'
-files = {'cocos'}
-config = {
- ["Lua.runtime.version"] = "LuaJIT",
-}
diff --git a/meta/3rd/Defold/config.json b/meta/3rd/Defold/config.json
new file mode 100644
index 00000000..5e0ea371
--- /dev/null
+++ b/meta/3rd/Defold/config.json
@@ -0,0 +1,22 @@
+{
+ "name" : "Defold",
+ "files" : ["game.project", "*%.script", "*%.gui_script"],
+ "config" : {
+ "Lua.runtime.version" : "Lua 5.1",
+ "Lua.workspace.library" : [".internal"],
+ "Lua.workspace.ignoreDir" : [".internal"],
+ "Lua.diagnostics.globals" : [
+ "on_input",
+ "on_message",
+ "init",
+ "update",
+ "final"
+ ],
+ "files.associations" : {
+ "*.script" : "lua",
+ "*.gui_script" : "lua",
+ "*.render_script" : "lua",
+ "*.editor_script" : "lua"
+ }
+ }
+}
diff --git a/meta/3rd/Defold/config.lua b/meta/3rd/Defold/config.lua
deleted file mode 100644
index 9c457938..00000000
--- a/meta/3rd/Defold/config.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-name = 'Defold'
-files = {'game.project', '*%.script', '*%.gui_script'}
-config = {
- ["Lua.runtime.version"] = "Lua 5.1",
- ["Lua.workspace.library"] = {".internal"},
- ["Lua.workspace.ignoreDir"] = {".internal"},
- ["Lua.diagnostics.globals"] = {
- "on_input",
- "on_message",
- "init",
- "update",
- "final",
- },
- ["files.associations"] = {
- ["*.script"] = "lua",
- ["*.gui_script"] = "lua",
- ["*.render_script"] = "lua",
- ["*.editor_script"] = "lua",
- }
-}
diff --git a/meta/3rd/Jass/config.json b/meta/3rd/Jass/config.json
new file mode 100644
index 00000000..512713f9
--- /dev/null
+++ b/meta/3rd/Jass/config.json
@@ -0,0 +1,6 @@
+{
+ "words" : ["jass%.common"],
+ "config" : {
+ "Lua.runtime.version": "Lua 5.3"
+ }
+}
diff --git a/meta/3rd/Jass/config.lua b/meta/3rd/Jass/config.lua
deleted file mode 100644
index 0ae56f49..00000000
--- a/meta/3rd/Jass/config.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-words = {'jass%.common'}
-config = {
- ["Lua.runtime.version"] = "Lua 5.3",
-}
diff --git a/meta/3rd/OpenResty/config.json b/meta/3rd/OpenResty/config.json
new file mode 100644
index 00000000..91717cc9
--- /dev/null
+++ b/meta/3rd/OpenResty/config.json
@@ -0,0 +1,19 @@
+{
+ "files" : [
+ "resty/redis%.lua",
+ "lib/resty/.*%.lua",
+ "src/resty/.*%.lua",
+ "lib/ngx.*/.*%.lua",
+ "src/ngx.*/.*%.lua"
+ ],
+ "words" : [
+ "resty%.%w+",
+ "ngx%.%w+"
+ ],
+ "config" : {
+ "Lua.runtime.version" : "LuaJIT",
+ "Lua.diagnostics.globals" : [
+ "ngx"
+ ]
+ }
+}
diff --git a/meta/3rd/OpenResty/config.lua b/meta/3rd/OpenResty/config.lua
deleted file mode 100644
index 8ca0382f..00000000
--- a/meta/3rd/OpenResty/config.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-files = {
- 'resty/redis%.lua',
- 'lib/resty/.*%.lua',
- 'src/resty/.*%.lua',
- 'lib/ngx.*/.*%.lua',
- 'src/ngx.*/.*%.lua',
-}
-
-words = {
- 'resty%.%w+',
- 'ngx%.%w+',
-}
-
-config = {
- ["Lua.runtime.version"] = "LuaJIT",
- ["Lua.diagnostics.globals"] = {
- "ngx",
- },
-}
diff --git a/meta/3rd/busted/config.json b/meta/3rd/busted/config.json
new file mode 100644
index 00000000..e547d0bd
--- /dev/null
+++ b/meta/3rd/busted/config.json
@@ -0,0 +1,7 @@
+{
+ "config": {
+ "Lua.workspace.library": [
+ "${3rd}/luassert/library"
+ ]
+ }
+}
diff --git a/meta/3rd/busted/config.lua b/meta/3rd/busted/config.lua
deleted file mode 100644
index a525a626..00000000
--- a/meta/3rd/busted/config.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-config = {
- ["Lua.workspace.library"] = {
- "${3rd}/luassert/library"
- }
-}
diff --git a/meta/3rd/example/config.json b/meta/3rd/example/config.json
new file mode 100644
index 00000000..415b92b2
--- /dev/null
+++ b/meta/3rd/example/config.json
@@ -0,0 +1,22 @@
+{
+ // if not set, the folder name will be used
+ "name" : "Example",
+ // list of matched words
+ "words" : ["thisIsAnExampleWord%.ifItExistsInFile%.thenTryLoadThisLibrary"],
+ // list or matched file names. `.lua`, `.dll` and `.so` only
+ "files" : ["thisIsAnExampleFile%.ifItExistsInWorkSpace%.thenTryLoadThisLibrary%.lua"],
+ // lsit of settings to be changed
+ "config" : {
+ "Lua.runtime.version" : "LuaJIT",
+ "Lua.diagnostics.globals" : [
+ "global1",
+ "global2"
+ ],
+ "Lua.runtime.special" : {
+ "include" : "require"
+ },
+ "Lua.runtime.builtin" : {
+ "io" : "disable"
+ }
+ }
+}
diff --git a/meta/3rd/example/config.lua b/meta/3rd/example/config.lua
deleted file mode 100644
index 20bae0f3..00000000
--- a/meta/3rd/example/config.lua
+++ /dev/null
@@ -1,20 +0,0 @@
--- if not set, the folder name will be used
-name = 'Example'
--- list of matched words
-words = {'thisIsAnExampleWord%.ifItExistsInFile%.thenTryLoadThisLibrary'}
--- list or matched file names. `.lua`, `.dll` and `.so` only
-files = {'thisIsAnExampleFile%.ifItExistsInWorkSpace%.thenTryLoadThisLibrary%.lua'}
--- lsit of settings to be changed
-config = {
- ["Lua.runtime.version"] = "LuaJIT",
- ["Lua.diagnostics.globals"] = {
- "global1",
- "global2",
- },
- ["Lua.runtime.special"] = {
- ["include"] = "require",
- },
- ["Lua.runtime.builtin"] = {
- ["io"] = "disable",
- },
-}
diff --git a/meta/3rd/lfs/config.json b/meta/3rd/lfs/config.json
new file mode 100644
index 00000000..3784f0c9
--- /dev/null
+++ b/meta/3rd/lfs/config.json
@@ -0,0 +1,9 @@
+{
+ "name" : "luafilesystem",
+ "words" : [ "require[%s%(\"']+lfs[%)\"']" ],
+ "config" : {
+ "Lua.diagnostics.globals" : [
+ "lfs"
+ ]
+ }
+}
diff --git a/meta/3rd/lfs/config.lua b/meta/3rd/lfs/config.lua
deleted file mode 100644
index b9e32610..00000000
--- a/meta/3rd/lfs/config.lua
+++ /dev/null
@@ -1,7 +0,0 @@
-name = 'luafilesystem'
-words = { 'require[%s%(\"\']+lfs[%)\"\']' }
-config = {
- ["Lua.diagnostics.globals"] = {
- "lfs",
- },
-}
diff --git a/meta/3rd/love2d/config.json b/meta/3rd/love2d/config.json
new file mode 100644
index 00000000..30862a97
--- /dev/null
+++ b/meta/3rd/love2d/config.json
@@ -0,0 +1,7 @@
+{
+ "name" : "LÖVE",
+ "words" : ["love%.%w+"],
+ "config" : {
+ "Lua.runtime.version" : "LuaJIT"
+ }
+}
diff --git a/meta/3rd/love2d/config.lua b/meta/3rd/love2d/config.lua
deleted file mode 100644
index 3ece274e..00000000
--- a/meta/3rd/love2d/config.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-name = 'LÖVE'
-words = {'love%.%w+'}
-config = {
- ["Lua.runtime.version"] = "LuaJIT",
-}
diff --git a/meta/3rd/lovr/config.json b/meta/3rd/lovr/config.json
new file mode 100644
index 00000000..d28e6bf9
--- /dev/null
+++ b/meta/3rd/lovr/config.json
@@ -0,0 +1,7 @@
+{
+ "name" : "LÖVR",
+ "words" : ["lovr%.%w+"],
+ "config" : {
+ "Lua.runtime.version" : "LuaJIT"
+ }
+}
diff --git a/meta/3rd/lovr/config.lua b/meta/3rd/lovr/config.lua
deleted file mode 100644
index 039bd0a0..00000000
--- a/meta/3rd/lovr/config.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-name = 'LÖVR'
-words = {'lovr%.%w+'}
-config = {
- ["Lua.runtime.version"] = "LuaJIT",
-}
diff --git a/meta/3rd/luaecs/config.json b/meta/3rd/luaecs/config.json
new file mode 100644
index 00000000..21d5453c
--- /dev/null
+++ b/meta/3rd/luaecs/config.json
@@ -0,0 +1,4 @@
+{
+ "name" : "luaecs",
+ "words" : [ "ecs%.world()" ]
+}
diff --git a/meta/3rd/luaecs/config.lua b/meta/3rd/luaecs/config.lua
deleted file mode 100644
index 0f79fabf..00000000
--- a/meta/3rd/luaecs/config.lua
+++ /dev/null
@@ -1,2 +0,0 @@
-name = "luaecs"
-words = { "ecs%.world()" }
diff --git a/meta/3rd/luassert/config.json b/meta/3rd/luassert/config.json
new file mode 100644
index 00000000..71e12fc6
--- /dev/null
+++ b/meta/3rd/luassert/config.json
@@ -0,0 +1,3 @@
+{
+ "words" : [ "require[%s%(\"']+luassert[%)\"']" ]
+}
diff --git a/meta/3rd/luassert/config.lua b/meta/3rd/luassert/config.lua
deleted file mode 100644
index f88cb12e..00000000
--- a/meta/3rd/luassert/config.lua
+++ /dev/null
@@ -1 +0,0 @@
-words = { "require[%s%(\"\']+luassert[%)\"\']" }
diff --git a/meta/3rd/skynet/config.json b/meta/3rd/skynet/config.json
new file mode 100644
index 00000000..17210c43
--- /dev/null
+++ b/meta/3rd/skynet/config.json
@@ -0,0 +1,4 @@
+{
+ "name" : "skynet",
+ "words" : [ "skynet.start" ]
+}
diff --git a/meta/3rd/skynet/config.lua b/meta/3rd/skynet/config.lua
deleted file mode 100644
index 79b0871b..00000000
--- a/meta/3rd/skynet/config.lua
+++ /dev/null
@@ -1,2 +0,0 @@
-name = "skynet"
-words = { "skynet.start" }