From 047afd24c563e97f6ceab8e700deabff272ec51b Mon Sep 17 00:00:00 2001 From: mtaran-google Date: Tue, 14 Jun 2016 14:56:31 -0700 Subject: [PATCH] [go mode] Add `error` as highlighted type It is, per https://golang.org/ref/spec#Predeclared_identifiers --- mode/go/go.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode/go/go.js b/mode/go/go.js index 21fe9a2d6e..3c9ef6b989 100644 --- a/mode/go/go.js +++ b/mode/go/go.js @@ -23,7 +23,7 @@ CodeMirror.defineMode("go", function(config) { "bool":true, "byte":true, "complex64":true, "complex128":true, "float32":true, "float64":true, "int8":true, "int16":true, "int32":true, "int64":true, "string":true, "uint8":true, "uint16":true, "uint32":true, - "uint64":true, "int":true, "uint":true, "uintptr":true + "uint64":true, "int":true, "uint":true, "uintptr":true, "error": true }; var atoms = {