Path: blob/main/extensions/go/language-configuration.json
3291 views
{1"comments": {2"lineComment": "//",3"blockComment": [4"/*",5"*/"6]7},8"brackets": [9[10"{",11"}"12],13[14"[",15"]"16],17[18"(",19")"20]21],22"autoClosingPairs": [23[24"{",25"}"26],27[28"[",29"]"30],31[32"(",33")"34],35{36"open": "`",37"close": "`",38"notIn": [39"string"40]41},42{43"open": "\"",44"close": "\"",45"notIn": [46"string"47]48},49{50"open": "'",51"close": "'",52"notIn": [53"string",54"comment"55]56}57],58"surroundingPairs": [59[60"{",61"}"62],63[64"[",65"]"66],67[68"(",69")"70],71[72"\"",73"\""74],75[76"'",77"'"78],79[80"`",81"`"82]83],84"indentationRules": {85"increaseIndentPattern": "^.*(\\bcase\\b.*:|\\bdefault\\b:|(\\b(func|if|else|switch|select|for|struct)\\b.*)?{[^}\"'`]*|\\([^)\"'`]*)$",86"decreaseIndentPattern": "^\\s*(\\bcase\\b.*:|\\bdefault\\b:|}[)}]*[),]?|\\)[,]?)$"87},88"folding": {89"markers": {90"start": "^\\s*//\\s*#?region\\b",91"end": "^\\s*//\\s*#?endregion\\b"92}93},94"onEnterRules": [95// Add // when pressing enter from inside line comment96{97"beforeText": {98"pattern": "\/\/.*"99},100"afterText": {101"pattern": "^(?!\\s*$).+"102},103"action": {104"indent": "none",105"appendText": "// "106}107},108]109}110111112