From 2a016e38909d0888e6fd670c3e6a6af96b4889d5 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 13 Sep 2013 16:14:05 +0200 Subject: [PATCH] Added another few missing builtin types and functions to the Go language. --- lib/ace/mode/golang_highlight_rules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ace/mode/golang_highlight_rules.js b/lib/ace/mode/golang_highlight_rules.js index 5a969661..d71bc2ad 100644 --- a/lib/ace/mode/golang_highlight_rules.js +++ b/lib/ace/mode/golang_highlight_rules.js @@ -12,10 +12,10 @@ define(function(require, exports, module) { ); var builtinTypes = ( "string|uint8|uint16|uint32|uint64|int8|int16|int32|int64|float32|" + - "float64|complex64|complex128|byte|rune|uint|int|uintptr|bool" + "float64|complex64|complex128|byte|rune|uint|int|uintptr|bool|error" ); var builtinFunctions = ( - "make|close|new" + "make|close|new|panic|recover" ); var builtinConstants = ("nil|true|false|iota"); @@ -108,4 +108,4 @@ define(function(require, exports, module) { oop.inherits(GolangHighlightRules, TextHighlightRules); exports.GolangHighlightRules = GolangHighlightRules; -}); +}); \ No newline at end of file