From 00b1e6bb96d0a277bc56c04fe65482985404cded Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Tue, 21 Jun 2022 00:26:16 +0300 Subject: [PATCH] basic language-configuration --- .../vscode-ext/language-configuration.json | 18 ++++++++++++++++++ packages/vscode-ext/package.json | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 packages/vscode-ext/language-configuration.json diff --git a/packages/vscode-ext/language-configuration.json b/packages/vscode-ext/language-configuration.json new file mode 100644 index 00000000..727d0444 --- /dev/null +++ b/packages/vscode-ext/language-configuration.json @@ -0,0 +1,18 @@ +{ + "comments": { + "lineComment": "//", + "blockComment": ["/*", "*/"] + }, + "brackets": [ + ["{", "}"], + ["[", "]"], + ["(", ")"] + ], + "autoClosingPairs": [ + { "open": "{", "close": "}" }, + { "open": "[", "close": "]" }, + { "open": "(", "close": ")" }, + { "open": "'", "close": "'", "notIn": ["string", "comment"] }, + { "open": "\"", "close": "\"", "notIn": ["string", "comment"] } + ] +} diff --git a/packages/vscode-ext/package.json b/packages/vscode-ext/package.json index fdac88a3..051e41de 100644 --- a/packages/vscode-ext/package.json +++ b/packages/vscode-ext/package.json @@ -31,7 +31,8 @@ ], "aliases": [ "Squiggle" - ] + ], + "configuration": "./language-configuration.json" } ], "grammars": [