]> luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/capnproto.min.js
Initial commit.
[flow-web.git] / static / highlight / languages / capnproto.min.js
1 /*! `capnproto` grammar compiled for Highlight.js 11.11.1 */
2 (()=>{var t=(()=>{"use strict";return t=>{const n={variants:[{
3 match:[/(struct|enum|interface)/,/\s+/,t.IDENT_RE]},{
4 match:[/extends/,/\s*\(/,t.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",
5 3:"title.class"}};return{name:"Cap\u2019n Proto",aliases:["capnp"],keywords:{
6 keyword:["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],
7 type:["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],
8 literal:["true","false"]},
9 contains:[t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.HASH_COMMENT_MODE,{
10 className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",
11 begin:/@\d+\b/},n]}}})();hljs.registerLanguage("capnproto",t)})();