From 5336f051aef2e64710c056ca9337014fc765f578 Mon Sep 17 00:00:00 2001 From: Sebastian Thomschke Date: Fri, 26 Jan 2024 20:44:13 +0100 Subject: [PATCH] Fix onEnterRules syntax in language configuration See https://code.visualstudio.com/api/language-extensions/language-configuration-guide --- .../language-configuration.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/org.eclipse.corrosion/language-configurations/language-configuration.json b/org.eclipse.corrosion/language-configurations/language-configuration.json index fe9d8edb..c062fec1 100644 --- a/org.eclipse.corrosion/language-configurations/language-configuration.json +++ b/org.eclipse.corrosion/language-configurations/language-configuration.json @@ -26,11 +26,11 @@ ["\"", "\""] ], "onEnterRules":[ - {"beforeText": "^\\s*/{3}.*$", "action":{ "indentAction": "None", "appendText": "/// " }}, - {"beforeText": "^\\s*/{2}\\!.*$", "action": { "indentAction": "None", "appendText": "//! " }}, - {"beforeText": "^\\s*/\\*(\\*|\\!)(?!/)([^\\*]|\\*(?!/))*$", "afterText": "^\\s*\\*/$", "action": { "indentAction": "IndentOutdent", "appendText": " * " }}, - {"beforeText": "^\\s*/\\*(\\*|\\!)(?!/)([^\\*]|\\*(?!/))*$", "action": { "indentAction": "None", "appendText": " * " }}, - {"beforeText": "^(\\ \\ )*\\ \\*(\\ ([^\\*]|\\*(?!/))*)?$", "action": { "indentAction": "None", "appendText": " * " }}, - {"beforeText": "^(\\ \\ )*\\ \\*/\\s*$", "action": { "indentAction": "None", "removeText": 1 }} + {"beforeText": "^\\s*/{3}.*$", "action": { "indent": "none", "appendText": "/// " }}, + {"beforeText": "^\\s*/{2}\\!.*$", "action": { "indent": "none", "appendText": "//! " }}, + {"beforeText": "^\\s*/\\*(\\*|\\!)(?!/)([^\\*]|\\*(?!/))*$", "afterText": "^\\s*\\*/$", "action": { "indent": "indentOutdent", "appendText": " * " }}, + {"beforeText": "^\\s*/\\*(\\*|\\!)(?!/)([^\\*]|\\*(?!/))*$", "action": { "indent": "none", "appendText": " * " }}, + {"beforeText": "^(\\ \\ )*\\ \\*(\\ ([^\\*]|\\*(?!/))*)?$", "action": { "indent": "none", "appendText": " * " }}, + {"beforeText": "^(\\ \\ )*\\ \\*/\\s*$", "action": { "indent": "none", "removeText": 1 }} ] }