Merge pull request #69899 from c0m3tx/region-fold-golang

Add region markers folding for Go
This commit is contained in:
Martin Aeschlimann 2019-05-27 15:32:21 +02:00 committed by GitHub
commit 235262c05c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,5 +27,11 @@
"indentationRules": {
"increaseIndentPattern": "^.*(\\bcase\\b.*:|\\bdefault\\b:|(\\b(func|if|else|switch|select|for|struct)\\b.*)?{[^}\"'`]*|\\([^)\"'`]*)$",
"decreaseIndentPattern": "^\\s*(\\bcase\\b.*:|\\bdefault\\b:|}[)}]*[),]?|\\)[,]?)$"
},
"folding": {
"markers": {
"start": "^\\s*//\\s*#?region\\b",
"end": "^\\s*//\\s*#?endregion\\b"
}
}
}