提交 20e32677 编写于 作者: M Martin Aeschlimann

[less] add region support

上级 d0be636b
...@@ -25,5 +25,11 @@ ...@@ -25,5 +25,11 @@
"indentationRules": { "indentationRules": {
"increaseIndentPattern": "(^.*\\{[^}]*$)", "increaseIndentPattern": "(^.*\\{[^}]*$)",
"decreaseIndentPattern": "^\\s*\\}" "decreaseIndentPattern": "^\\s*\\}"
},
"folding": {
"markers": {
"start": "^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/",
"end": "^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/"
}
} }
} }
\ No newline at end of file
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
"scopeName": "source.css.less", "scopeName": "source.css.less",
"path": "./syntaxes/less.tmLanguage.json" "path": "./syntaxes/less.tmLanguage.json"
}], }],
"snippets": [{
"language": "less",
"path": "./snippets/less.snippets.json"
}],
"problemMatchers": [ "problemMatchers": [
{ {
"name": "lessc", "name": "lessc",
......
{
"Region Start": {
"prefix": "#region",
"body": [
"/*#region $0*/"
],
"description": "Folding Region Start"
},
"Region End": {
"prefix": "#endregion",
"body": [
"/*#endregion $0*/"
],
"description": "Folding Region End"
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册