44 lines
961 B
JSON
44 lines
961 B
JSON
{
|
|
"comments": {
|
|
"lineComment": "//"
|
|
},
|
|
"wordPattern": "[A-Za-z_][A-Za-z0-9_]*|-?[0-9]+(?:\\.[0-9]+)?",
|
|
"brackets": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"]
|
|
],
|
|
"autoClosingPairs": [
|
|
{ "open": "{", "close": "}" },
|
|
{ "open": "[", "close": "]" },
|
|
{ "open": "(", "close": ")" },
|
|
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] }
|
|
],
|
|
"surroundingPairs": [
|
|
["{", "}"],
|
|
["[", "]"],
|
|
["(", ")"],
|
|
["\"", "\""]
|
|
],
|
|
"folding": {
|
|
"markers": {
|
|
"start": "^\\s*//\\s*(?:#?region)\\b",
|
|
"end": "^\\s*//\\s*(?:#?endregion)\\b"
|
|
}
|
|
},
|
|
"indentationRules": {
|
|
"increaseIndentPattern": "^.*\\{[^}]*$",
|
|
"decreaseIndentPattern": "^\\s*\\}"
|
|
},
|
|
"onEnterRules": [
|
|
{
|
|
"beforeText": "^.*\\{\\s*$",
|
|
"afterText": "^\\s*\\}",
|
|
"action": { "indent": "indentOutdent" }
|
|
},
|
|
{
|
|
"beforeText": "^.*\\{\\s*$",
|
|
"action": { "indent": "indent" }
|
|
}
|
|
]
|
|
}
|