1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/go.js"],"names":["module","exports","hljs","GO_KEYWORDS","keyword","literal","built_in","aliases","keywords","illegal","contains","C_LINE_COMMENT_MODE","C_BLOCK_COMMENT_MODE","className","variants","QUOTE_STRING_MODE","APOS_STRING_MODE","begin","end","C_NUMBER_RE","relevance","C_NUMBER_MODE","beginKeywords","excludeEnd","TITLE_MODE"],"mappings":"oFAAAA,EAAOC,QAAU,SAASC,GACxB,IAAIC,EAAc,CAChBC,QACE,0RAIFC,QACG,sBACHC,SACE,2FAEJ,MAAO,CACLC,QAAS,CAAC,UACVC,SAAUL,EACVM,QAAS,KACTC,SAAU,CACRR,EAAKS,oBACLT,EAAKU,qBACL,CACEC,UAAW,SACXC,SAAU,CACRZ,EAAKa,kBACLb,EAAKc,iBACL,CAACC,MAAO,IAAKC,IAAK,OAGtB,CACEL,UAAW,SACXC,SAAU,CACR,CAACG,MAAOf,EAAKiB,YAAc,MAAOC,UAAW,GAC7ClB,EAAKmB,gBAGT,CACEJ,MAAO,MAET,CACEJ,UAAW,WACXS,cAAe,OAAQJ,IAAK,cAAeK,YAAY,EACvDb,SAAU,CACRR,EAAKsB,WACL,CACEX,UAAW,SACXI,MAAO,KAAMC,IAAK,KAClBV,SAAUL,EACVM,QAAS","file":"highlight/go.js?v=8d10300accc465f571c9","sourcesContent":["module.exports = function(hljs) {\n var GO_KEYWORDS = {\n keyword:\n 'break default func interface select case map struct chan else goto package switch ' +\n 'const fallthrough if range type continue for import return var go defer ' +\n 'bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 ' +\n 'uint16 uint32 uint64 int uint uintptr rune',\n literal:\n 'true false iota nil',\n built_in:\n 'append cap close complex copy imag len make new panic print println real recover delete'\n };\n return {\n aliases: ['golang'],\n keywords: GO_KEYWORDS,\n illegal: '</',\n contains: [\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n {\n className: 'string',\n variants: [\n hljs.QUOTE_STRING_MODE,\n hljs.APOS_STRING_MODE,\n {begin: '`', end: '`'},\n ]\n },\n {\n className: 'number',\n variants: [\n {begin: hljs.C_NUMBER_RE + '[i]', relevance: 1},\n hljs.C_NUMBER_MODE\n ]\n },\n {\n begin: /:=/ // relevance booster\n },\n {\n className: 'function',\n beginKeywords: 'func', end: '\\\\s*(\\\\{|$)', excludeEnd: true,\n contains: [\n hljs.TITLE_MODE,\n {\n className: 'params',\n begin: /\\(/, end: /\\)/,\n keywords: GO_KEYWORDS,\n illegal: /[\"']/\n }\n ]\n }\n ]\n };\n};"],"sourceRoot":""}
|