From 869d707befbd8365f71c5262c82e97962688398f Mon Sep 17 00:00:00 2001 From: William Killerud Date: Mon, 30 May 2022 15:43:12 +0200 Subject: [PATCH] Add onEnterRule for SassDoc documentation (fix #150598) (#150599) Co-authored-by: Martin Aeschlimann --- extensions/scss/language-configuration.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/extensions/scss/language-configuration.json b/extensions/scss/language-configuration.json index 8ed82ad4a6c..ffa53ddf958 100644 --- a/extensions/scss/language-configuration.json +++ b/extensions/scss/language-configuration.json @@ -32,5 +32,14 @@ "increaseIndentPattern": "(^.*\\{[^}]*$)", "decreaseIndentPattern": "^\\s*\\}" }, - "wordPattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]*(?=[^,{;]*[,{]))|(([@$#.!])?[\\w-?]+%?|[@#!$.])" + "wordPattern": "(#?-?\\d*\\.\\d\\w*%?)|(::?[\\w-]*(?=[^,{;]*[,{]))|(([@$#.!])?[\\w-?]+%?|[@#!$.])", + "onEnterRules": [ + { + "beforeText": "^[\\s]*///.*$", + "action": { + "indent": "none", + "appendText": "/// " + } + } + ] }