[scss] add region support

This commit is contained in:
Martin Aeschlimann 2017-11-30 11:51:12 +01:00
parent 20e326771a
commit 8dca274cda
3 changed files with 27 additions and 1 deletions

View file

@ -21,5 +21,11 @@
["(", ")"],
["\"", "\""],
["'", "'"]
]
],
"folding": {
"markers": {
"start": "^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/",
"end": "^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/"
}
}
}

View file

@ -19,6 +19,10 @@
"scopeName": "source.css.scss",
"path": "./syntaxes/scss.json"
}],
"snippets": [{
"language": "scss",
"path": "./snippets/scss.snippets.json"
}],
"problemMatchers": [{
"name": "node-sass",
"label": "Node Sass Compiler",

View file

@ -0,0 +1,16 @@
{
"Region Start": {
"prefix": "#region",
"body": [
"/*#region $0*/"
],
"description": "Folding Region Start"
},
"Region End": {
"prefix": "#endregion",
"body": [
"/*#endregion $0*/"
],
"description": "Folding Region End"
}
}