2015-11-13 13:39:38 +00:00
|
|
|
{
|
|
|
|
"comments": {
|
|
|
|
"lineComment": "//",
|
|
|
|
"blockComment": [ "/*", "*/" ]
|
|
|
|
},
|
|
|
|
"brackets": [
|
|
|
|
["{", "}"],
|
|
|
|
["[", "]"],
|
|
|
|
["(", ")"]
|
2016-04-21 20:40:02 +00:00
|
|
|
],
|
|
|
|
"autoClosingPairs": [
|
|
|
|
["{", "}"],
|
|
|
|
["[", "]"],
|
|
|
|
["(", ")"],
|
2020-01-09 09:34:35 +00:00
|
|
|
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
|
|
|
{ "open": "'", "close": "'", "notIn": ["string"] },
|
2017-01-23 19:39:08 +00:00
|
|
|
{ "open": "/**", "close": " */", "notIn": ["string"] }
|
2016-04-21 20:40:02 +00:00
|
|
|
],
|
|
|
|
"surroundingPairs": [
|
|
|
|
["{", "}"],
|
|
|
|
["[", "]"],
|
|
|
|
["(", ")"],
|
|
|
|
["\"", "\""],
|
|
|
|
["'", "'"],
|
|
|
|
["<", ">"]
|
2017-10-13 07:30:33 +00:00
|
|
|
],
|
|
|
|
"folding": {
|
|
|
|
"markers": {
|
2017-11-15 16:37:19 +00:00
|
|
|
"start": "^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))",
|
|
|
|
"end": "^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))"
|
2017-10-13 07:30:33 +00:00
|
|
|
}
|
2023-03-15 08:52:53 +00:00
|
|
|
},
|
|
|
|
"onEnterRules": [
|
|
|
|
{
|
|
|
|
// e.g. /** | */
|
|
|
|
"beforeText": {
|
|
|
|
"pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
|
|
|
|
},
|
|
|
|
"afterText": {
|
|
|
|
"pattern": "^\\s*\\*/$"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"indent": "indentOutdent",
|
|
|
|
"appendText": " * "
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// e.g. /** ...|
|
|
|
|
"beforeText": {
|
|
|
|
"pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"indent": "none",
|
|
|
|
"appendText": " * "
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// e.g. * ...|
|
|
|
|
"beforeText": {
|
|
|
|
"pattern": "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
|
|
|
|
},
|
|
|
|
"previousLineText": {
|
|
|
|
"pattern": "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"indent": "none",
|
|
|
|
"appendText": "* "
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// e.g. */|
|
|
|
|
"beforeText": {
|
|
|
|
"pattern": "^(\\t|[ ])*[ ]\\*/\\s*$"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"indent": "none",
|
|
|
|
"removeText": 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// e.g. *-----*/|
|
|
|
|
"beforeText": {
|
|
|
|
"pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"indent": "none",
|
|
|
|
"removeText": 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"beforeText": {
|
|
|
|
"pattern": "^\\s*(\\bcase\\s.+:|\\bdefault:)$"
|
|
|
|
},
|
|
|
|
"afterText": {
|
|
|
|
"pattern": "^(?!\\s*(\\bcase\\b|\\bdefault\\b))"
|
|
|
|
},
|
|
|
|
"action": {
|
|
|
|
"indent": "indent"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2017-01-23 19:39:08 +00:00
|
|
|
}
|