vscode/extensions/go/language-configuration.json

37 lines
854 B
JSON
Raw Normal View History

2015-11-13 14:39:38 +01:00
{
"comments": {
"lineComment": "//",
"blockComment": [ "/*", "*/" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
2016-04-21 22:34:15 +02:00
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
{ "open": "`", "close": "`", "notIn": ["string"]},
{ "open": "\"", "close": "\"", "notIn": ["string"]},
{ "open": "'", "close": "'", "notIn": ["string", "comment"]}
2016-04-21 22:34:15 +02:00
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"],
["`", "`"]
2017-08-03 23:26:27 +02:00
],
"indentationRules": {
"increaseIndentPattern": "^.*(\\bcase\\b.*:|\\bdefault\\b:|(\\b(func|if|else|switch|select|for|struct)\\b.*)?{[^}\"'`]*|\\([^)\"'`]*)$",
"decreaseIndentPattern": "^\\s*(\\bcase\\b.*:|\\bdefault\\b:|}[)}]*[),]?|\\)[,]?)$"
2019-03-06 11:50:36 +01:00
},
"folding": {
"markers": {
2019-05-27 15:25:10 +02:00
"start": "^\\s*//\\s*#?region\\b",
"end": "^\\s*//\\s*#?endregion\\b"
2019-03-06 11:50:36 +01:00
}
2017-08-03 23:26:27 +02:00
}
2015-11-13 14:39:38 +01:00
}