Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[go mode] Add ')' as electric character.

As a result, the common pattern

import (
	"foo"
	"bar"
	)

will re-indent automatically to the gofmt-blessed

import (
	"foo"
	"bar"
)
  • Loading branch information...
commit 51d6810d35511ad96349eb6a91fe46ff43ddbd7e 1 parent caff498
@espadrine espadrine authored marijnh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  mode/go/go.js
View
2  mode/go/go.js
@@ -158,7 +158,7 @@ CodeMirror.defineMode("go", function(config) {
else return ctx.indented + (closing ? 0 : indentUnit);
},
- electricChars: "{}:",
+ electricChars: "{}):",
blockCommentStart: "/*",
blockCommentEnd: "*/",
lineComment: "//"
Please sign in to comment.
Something went wrong with that request. Please try again.