[less] add region support

This commit is contained in:
Martin Aeschlimann 2017-11-30 11:50:52 +01:00
parent d0be636bfd
commit 20e326771a
3 changed files with 26 additions and 0 deletions

View file

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

View file

@ -19,6 +19,10 @@
"scopeName": "source.css.less",
"path": "./syntaxes/less.tmLanguage.json"
}],
"snippets": [{
"language": "less",
"path": "./snippets/less.snippets.json"
}],
"problemMatchers": [
{
"name": "lessc",

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"
}
}