From 7a3df06eb573d36142bd1a8e03c5ce8752d300b3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2017 15:10:37 +0200 Subject: fix build issues and add typedoc --- node_modules/highlight.js/lib/languages/go.js | 53 +++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 node_modules/highlight.js/lib/languages/go.js (limited to 'node_modules/highlight.js/lib/languages/go.js') diff --git a/node_modules/highlight.js/lib/languages/go.js b/node_modules/highlight.js/lib/languages/go.js new file mode 100644 index 000000000..2a5a8649d --- /dev/null +++ b/node_modules/highlight.js/lib/languages/go.js @@ -0,0 +1,53 @@ +module.exports = function(hljs) { + var GO_KEYWORDS = { + keyword: + 'break default func interface select case map struct chan else goto package switch ' + + 'const fallthrough if range type continue for import return var go defer ' + + 'bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 ' + + 'uint16 uint32 uint64 int uint uintptr rune', + literal: + 'true false iota nil', + built_in: + 'append cap close complex copy imag len make new panic print println real recover delete' + }; + return { + aliases: ['golang'], + keywords: GO_KEYWORDS, + illegal: '