blob: 6d508002caa36b7020836428282c88bfcbfc3293 [file] [log] [blame]
{"version":3,"sources":["webpack:///./node_modules/react-syntax-highlighter/node_modules/highlight.js/lib/languages/thrift.js"],"names":["module","exports","hljs","name","keywords","keyword","built_in","literal","contains","QUOTE_STRING_MODE","NUMBER_MODE","C_LINE_COMMENT_MODE","C_BLOCK_COMMENT_MODE","className","beginKeywords","end","illegal","inherit","TITLE_MODE","starts","endsWithParent","excludeEnd","begin"],"mappings":"8EAqCAA,EAAOC,QA9BP,SAAgBC,GAEd,MAAO,CACLC,KAAM,SACNC,SAAU,CACRC,QAAS,mGACTC,SALiB,6CAMjBC,QAAS,cAEXC,SAAU,CAACN,EAAKO,kBAAmBP,EAAKQ,YAAaR,EAAKS,oBAAqBT,EAAKU,qBAAsB,CACxGC,UAAW,QACXC,cAAe,gCACfC,IAAK,KACLC,QAAS,KACTR,SAAU,CAACN,EAAKe,QAAQf,EAAKgB,WAAY,CACvCC,OAAQ,CACNC,gBAAgB,EAChBC,YAAY,OAIf,CACDC,MAAO,yBACPP,IAAK,IACLX,SAvBiB,6CAwBjBI,SAAU,CAAC","file":"react-syntax-highlighter_languages_highlight_thrift-c2e3d41c057013d08626.js","sourcesContent":["/*\nLanguage: Thrift\nAuthor: Oleg Efimov <efimovov@gmail.com>\nDescription: Thrift message definition format\nWebsite: https://thrift.apache.org\nCategory: protocols\n*/\nfunction thrift(hljs) {\n var BUILT_IN_TYPES = 'bool byte i16 i32 i64 double string binary';\n return {\n name: 'Thrift',\n keywords: {\n keyword: 'namespace const typedef struct enum service exception void oneway set list map required optional',\n built_in: BUILT_IN_TYPES,\n literal: 'true false'\n },\n contains: [hljs.QUOTE_STRING_MODE, hljs.NUMBER_MODE, hljs.C_LINE_COMMENT_MODE, hljs.C_BLOCK_COMMENT_MODE, {\n className: 'class',\n beginKeywords: 'struct enum service exception',\n end: /\\{/,\n illegal: /\\n/,\n contains: [hljs.inherit(hljs.TITLE_MODE, {\n starts: {\n endsWithParent: true,\n excludeEnd: true\n } // hack: eating everything after the first title\n\n })]\n }, {\n begin: '\\\\b(set|list|map)\\\\s*<',\n end: '>',\n keywords: BUILT_IN_TYPES,\n contains: ['self']\n }]\n };\n}\n\nmodule.exports = thrift;"],"sourceRoot":""}