]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/thrift.js
1 /*! `thrift` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Author: Oleg Efimov <efimovov@gmail.com>
9 Description: Thrift message definition format
10 Website: https://thrift.apache.org
14 function thrift(hljs
) {
49 hljs
.QUOTE_STRING_MODE
,
51 hljs
.C_LINE_COMMENT_MODE
,
52 hljs
.C_BLOCK_COMMENT_MODE
,
55 beginKeywords: 'struct enum service exception',
59 hljs
.inherit(hljs
.TITLE_MODE
, {
60 // hack: eating everything after the first title
68 begin: '\\b(set|list|map)\\s*<',
86 hljs
.registerLanguage('thrift', hljsGrammar
);