]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/protobuf.js
1 /*! `protobuf` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= (function () {
6 Language: Protocol Buffers
7 Author: Dan Tao <daniel.tao@gmail.com>
8 Description: Protocol buffer message definition format
9 Website: https://developers.google.com/protocol-buffers/docs/proto3
13 function protobuf(hljs
) {
41 const CLASS_DEFINITION
= {
43 /(message|enum|service)\s+/,
53 name: 'Protocol Buffers',
64 hljs
.QUOTE_STRING_MODE
,
66 hljs
.C_LINE_COMMENT_MODE
,
67 hljs
.C_BLOCK_COMMENT_MODE
,
70 className: 'function',
74 keywords: 'rpc returns'
76 { // match enum items (relevance)
78 begin: /^\s*[A-Z_]+(?=\s*=[^\n]+;$)/ }
87 export default hljsGrammar
;