Skip to content

Commit 8dca274

Browse files
committed
[scss] add region support
1 parent 20e3267 commit 8dca274

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

extensions/scss/language-configuration.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@
2121
["(", ")"],
2222
["\"", "\""],
2323
["'", "'"]
24-
]
24+
],
25+
"folding": {
26+
"markers": {
27+
"start": "^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/",
28+
"end": "^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/"
29+
}
30+
}
2531
}

extensions/scss/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
"scopeName": "source.css.scss",
2020
"path": "./syntaxes/scss.json"
2121
}],
22+
"snippets": [{
23+
"language": "scss",
24+
"path": "./snippets/scss.snippets.json"
25+
}],
2226
"problemMatchers": [{
2327
"name": "node-sass",
2428
"label": "Node Sass Compiler",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"Region Start": {
3+
"prefix": "#region",
4+
"body": [
5+
"/*#region $0*/"
6+
],
7+
"description": "Folding Region Start"
8+
},
9+
"Region End": {
10+
"prefix": "#endregion",
11+
"body": [
12+
"/*#endregion $0*/"
13+
],
14+
"description": "Folding Region End"
15+
}
16+
}

0 commit comments

Comments
 (0)