summaryrefslogtreecommitdiff
path: root/meta/3rd/example
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/example')
-rw-r--r--meta/3rd/example/config.json22
-rw-r--r--meta/3rd/example/config.lua20
2 files changed, 22 insertions, 20 deletions
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",
- },
-}