From acace34245c811ffab92612b33a75e8d23da1639 Mon Sep 17 00:00:00 2001 From: wintea Date: Mon, 28 Nov 2022 23:38:27 +0100 Subject: [PATCH] Lua + VSCode task auto bump --- .vscode/tasks.json | 29 ++++++++++++++----- .../language-configuration.lua.json | 27 +++++++++++++++++ .../multi-line-configuration.json | 3 +- .../single-line-configuration.json | 3 ++ 4 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 language-configuration/language-configuration.lua.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1e37eb7..55b4e53 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -8,17 +8,11 @@ // A task runner that calls a custom npm script that compiles the extension. { - "version": "0.1.0", + "version": "2.0.0", // we want to run npm "command": "npm", - // the command is a shell script - "isShellCommand": true, - - // show the output window only if unrecognized errors occur. - "showOutput": "silent", - // we run the custom script "compile" as defined in package.json "args": ["run", "compile", "--loglevel", "silent"], @@ -26,5 +20,24 @@ "isBackground": true, // use the standard tsc in watch mode problem matcher to find compile problems in the output. - "problemMatcher": "$tsc-watch" + "problemMatcher": "$tsc-watch", + "tasks": [ + { + "label": "npm", + "type": "shell", + "command": "npm", + "args": [ + "run", + "compile", + "--loglevel", + "silent" + ], + "isBackground": true, + "problemMatcher": "$tsc-watch", + "group": { + "_id": "build", + "isDefault": false + } + } + ] } \ No newline at end of file diff --git a/language-configuration/language-configuration.lua.json b/language-configuration/language-configuration.lua.json new file mode 100644 index 0000000..07788cf --- /dev/null +++ b/language-configuration/language-configuration.lua.json @@ -0,0 +1,27 @@ +{ + "comments": { + "blockComment": ["--[[","]]"], + "lineComment": "--" + }, + "brackets": [ + ["{", "}"], + ["[", "]"], + ["(", ")"] + ], + "autoClosingPairs": [ + { "open": "{", "close": "}", "notIn": ["string", "comment"] }, + { "open": "[", "close": "]", "notIn": ["string", "comment"] }, + { "open": "(", "close": ")", "notIn": ["string", "comment"] }, + { "open": "\"", "close": "\"", "notIn": ["string", "comment"] }, + { "open": "'", "close": "'", "notIn": ["string", "comment"] }, + { "open": "--[[", "close": "]]", "notIn":["string", "comment"] } + ], + "surroundingPairs": [ + ["{", "}"], + ["[", "]"], + ["(", ")"], + ["\"", "\""], + ["'", "'"], + ["do", "end"] + ], +} diff --git a/language-configuration/multi-line-configuration.json b/language-configuration/multi-line-configuration.json index f41886b..8aa20d5 100644 --- a/language-configuration/multi-line-configuration.json +++ b/language-configuration/multi-line-configuration.json @@ -13,6 +13,7 @@ "php", "rust", "scss", - "swift" + "swift", + "lua" ] } \ No newline at end of file diff --git a/language-configuration/single-line-configuration.json b/language-configuration/single-line-configuration.json index fce0efd..502460b 100644 --- a/language-configuration/single-line-configuration.json +++ b/language-configuration/single-line-configuration.json @@ -30,5 +30,8 @@ ], ";": [ "clojure" + ], + "--": [ + "lua" ] } \ No newline at end of file