Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Killerud <william@killerud.com>2022-05-30 16:43:12 +0300
committerGitHub <noreply@github.com>2022-05-30 16:43:12 +0300
commit869d707befbd8365f71c5262c82e97962688398f (patch)
tree1c1cc1e6c6705f71353a8615a5f5aff0e13f5f85 /extensions
parentb6cd2b1f8ae845fd234d4be64ee8d1c19b297b72 (diff)
Add onEnterRule for SassDoc documentation (fix #150598) (#150599)
Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/scss/language-configuration.json11
1 files changed, 10 insertions, 1 deletions
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": "/// "
+ }
+ }
+ ]
}