Merge pull request #1597 from ajaxorg/golang-bool

Golang: Added 'bool' type and 'select' keyword
This commit is contained in:
Lennart Kats 2013-09-10 04:58:40 -07:00
commit 98d149f0b8

View file

@ -5,14 +5,14 @@ define(function(require, exports, module) {
var GolangHighlightRules = function() {
var keywords = (
"else|break|case|return|goto|if|const|" +
"else|break|case|return|goto|if|const|select|" +
"continue|struct|default|switch|for|range|" +
"func|import|package|chan|defer|fallthrough|go|interface|map|range" +
"select|type|var"
);
var builtinTypes = (
"string|uint8|uint16|uint32|uint64|int8|int16|int32|int64|float32|" +
"float64|complex64|complex128|byte|rune|uint|int|uintptr"
"float64|complex64|complex128|byte|rune|uint|int|uintptr|bool"
);
var builtinFunctions = (
"make|close|new"