2015-11-13 13:39:38 +00:00
|
|
|
{
|
|
|
|
"comments": {
|
|
|
|
"lineComment": "//",
|
|
|
|
"blockComment": ["/*", "*/"]
|
|
|
|
},
|
|
|
|
"brackets": [
|
|
|
|
["{", "}"],
|
|
|
|
["[", "]"],
|
2022-09-23 11:59:23 +00:00
|
|
|
["(", ")"]
|
2016-04-21 20:25:04 +00:00
|
|
|
],
|
|
|
|
"autoClosingPairs": [
|
2017-04-20 22:21:42 +00:00
|
|
|
{ "open": "[", "close": "]" },
|
|
|
|
{ "open": "{", "close": "}" },
|
|
|
|
{ "open": "(", "close": ")" },
|
|
|
|
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
|
2022-10-11 07:23:42 +00:00
|
|
|
{ "open": "\"", "close": "\"", "notIn": ["string"] },
|
2024-05-15 09:10:15 +00:00
|
|
|
{ "open": "/*", "close": "*/", "notIn": ["string", "comment"] },
|
|
|
|
{ "open": "/**", "close": " */", "notIn": ["string"] }
|
2016-04-21 20:25:04 +00:00
|
|
|
],
|
|
|
|
"surroundingPairs": [
|
|
|
|
["{", "}"],
|
|
|
|
["[", "]"],
|
|
|
|
["(", ")"],
|
|
|
|
["\"", "\""],
|
2018-04-18 20:20:32 +00:00
|
|
|
["'", "'"],
|
|
|
|
["<", ">"]
|
2017-07-26 00:17:06 +00:00
|
|
|
],
|
2021-04-26 20:07:56 +00:00
|
|
|
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
|
2017-09-22 12:04:32 +00:00
|
|
|
"folding": {
|
|
|
|
"markers": {
|
2017-10-12 14:55:08 +00:00
|
|
|
"start": "^\\s*#pragma\\s+region\\b",
|
|
|
|
"end": "^\\s*#pragma\\s+endregion\\b"
|
2017-09-22 12:04:32 +00:00
|
|
|
}
|
2023-03-01 02:17:35 +00:00
|
|
|
},
|
|
|
|
"onEnterRules": [
|
|
|
|
{
|
|
|
|
// Decrease indentation after single line if/else if/else, for, or while
|
|
|
|
"previousLineText": "^\\s*(((else ?)?if|for|while)\\s*\\(.*\\)\\s*|else\\s*)$",
|
|
|
|
// But make sure line doesn't have braces or is not another if statement
|
|
|
|
"beforeText": "^\\s+([^{i\\s]|i(?!f\\b))",
|
|
|
|
"action": {
|
|
|
|
"indent": "outdent"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-07-29 11:06:03 +00:00
|
|
|
}
|