Welcome to mirror list, hosted at ThFree Co, Russian Federation.

thrift.js.map « highlight « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8f120aaa7ce357aa40d99ec121c55ff9b604bebd (plain)
1
{"version":3,"sources":["webpack:///./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":"oGAkDAA,EAAOC,QA1CP,SAAgBC,GAEd,MAAO,CACLC,KAAM,SACNC,SAAU,CACRC,QACE,mGACFC,SANmB,6CAQnBC,QACE,cAEJC,SAAU,CACRN,EAAKO,kBACLP,EAAKQ,YACLR,EAAKS,oBACLT,EAAKU,qBACL,CACEC,UAAW,QACXC,cAAe,gCACfC,IAAK,KACLC,QAAS,KACTR,SAAU,CACRN,EAAKe,QAAQf,EAAKgB,WAAY,CAE5BC,OAAQ,CACNC,gBAAgB,EAChBC,YAAY,OAKpB,CACEC,MAAO,yBACPP,IAAK,IACLX,SAlCiB,6CAmCjBI,SAAU,CAAE","file":"highlight/thrift.js?v=ba7a1cfe5b68b8d946d5","sourcesContent":["/*\nLanguage: Thrift\nAuthor: Oleg Efimov <efimovov@gmail.com>\nDescription: Thrift message definition format\nWebsite: https://thrift.apache.org\nCategory: protocols\n*/\n\nfunction thrift(hljs) {\n  const BUILT_IN_TYPES = 'bool byte i16 i32 i64 double string binary';\n  return {\n    name: 'Thrift',\n    keywords: {\n      keyword:\n        'namespace const typedef struct enum service exception void oneway set list map required optional',\n      built_in:\n        BUILT_IN_TYPES,\n      literal:\n        'true false'\n    },\n    contains: [\n      hljs.QUOTE_STRING_MODE,\n      hljs.NUMBER_MODE,\n      hljs.C_LINE_COMMENT_MODE,\n      hljs.C_BLOCK_COMMENT_MODE,\n      {\n        className: 'class',\n        beginKeywords: 'struct enum service exception',\n        end: /\\{/,\n        illegal: /\\n/,\n        contains: [\n          hljs.inherit(hljs.TITLE_MODE, {\n            // hack: eating everything after the first title\n            starts: {\n              endsWithParent: true,\n              excludeEnd: true\n            }\n          })\n        ]\n      },\n      {\n        begin: '\\\\b(set|list|map)\\\\s*<',\n        end: '>',\n        keywords: BUILT_IN_TYPES,\n        contains: [ 'self' ]\n      }\n    ]\n  };\n}\n\nmodule.exports = thrift;\n"],"sourceRoot":""}