]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/capnproto.js
1 /*! `capnproto` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Author: Oleg Efimov <efimovov@gmail.com>
9 Description: Cap’n Proto message definition format
10 Website: https://capnproto.org/capnp-tool.html
14 /** @type LanguageFn */
15 function capnproto(hljs
) {
59 const CLASS_DEFINITION
= {
62 /(struct|enum|interface)/,
87 hljs
.QUOTE_STRING_MODE
,
89 hljs
.HASH_COMMENT_MODE
,
92 begin: /@0x[\w\d]{16};/,
108 hljs
.registerLanguage('capnproto', hljsGrammar
);