Skip to content

Commit 047afd2

Browse files
mtaran-googlemarijnh
authored andcommitted
[go mode] Add error as highlighted type
It is, per https://golang.org/ref/spec#Predeclared_identifiers
1 parent 58b549d commit 047afd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/go/go.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CodeMirror.defineMode("go", function(config) {
2323
"bool":true, "byte":true, "complex64":true, "complex128":true,
2424
"float32":true, "float64":true, "int8":true, "int16":true, "int32":true,
2525
"int64":true, "string":true, "uint8":true, "uint16":true, "uint32":true,
26-
"uint64":true, "int":true, "uint":true, "uintptr":true
26+
"uint64":true, "int":true, "uint":true, "uintptr":true, "error": true
2727
};
2828

2929
var atoms = {

0 commit comments

Comments
 (0)