From c82fd3819d2a7be87b9c65b3a173a569a0bcc421 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Mon, 4 Jun 2018 13:27:18 -0700 Subject: [PATCH] Avoid indent after strings with brackets Fixes #50959 (#50960) --- extensions/go/language-configuration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/go/language-configuration.json b/extensions/go/language-configuration.json index f8b2b18e5b0..cf20e02f307 100644 --- a/extensions/go/language-configuration.json +++ b/extensions/go/language-configuration.json @@ -25,7 +25,7 @@ ["`", "`"] ], "indentationRules": { - "increaseIndentPattern": "^.*(\\bcase\\b.*:|\\bdefault\\b:|(\\b(func|if|else|switch|select|for|struct)\\b.*)?{[^}]*|\\([^)]*)$", + "increaseIndentPattern": "^.*(\\bcase\\b.*:|\\bdefault\\b:|(\\b(func|if|else|switch|select|for|struct)\\b.*)?{[^}\"'`]*|\\([^)\"'`]*)$", "decreaseIndentPattern": "^\\s*(\\bcase\\b.*:|\\bdefault\\b:|}[)}]*[),]?|\\)[,]?)$" } } \ No newline at end of file