diff options
author | William Killerud <william@killerud.com> | 2022-05-30 16:43:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 16:43:12 +0300 |
commit | 869d707befbd8365f71c5262c82e97962688398f (patch) | |
tree | 1c1cc1e6c6705f71353a8615a5f5aff0e13f5f85 /extensions | |
parent | b6cd2b1f8ae845fd234d4be64ee8d1c19b297b72 (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.json | 11 |
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": "/// " + } + } + ] } |