UNPKG

highlightjs-func

Version:

highlight.js syntax definition for TON's FunC language

14 lines 963 B
/*! `tlb` grammar compiled for Highlight.js 11.6.0 */ var hljsGrammar=(()=>{"use strict";const t=/[a-zA-Z_][0-9a-zA-Z_]*/;return e=>({ name:"TL-B",aliases:["Tlb","tlb","TLB","tl-b","TL-b","Tl-B","Tl-b"], case_insensitive:!1,keywords:{keyword:[], literal:["True","BoolTrue","False","BoolFalse","Null"], type:["Type","Bool","Unit","Maybe","Either","Both","Cell","uint8","uint15","uint16","uint32","uint63","uint64","int8","int16","int32","int64","bits256","bits512"], built_in:[]},contains:[{scope:"comment", variants:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},{scope:"symbol", match:e.regex.either(/#[0-9a-f]*_?/,/\$[01]*_?/,/##/,/#<=/,/#</)},{ match:[/=/,/\s+/,t,/[\s;]/],scope:{1:"operator",3:"type"}},{scope:"variable", match:t},{scope:"operator", match:e.regex.either(/\+/,/-/,/\*/,/\//,/!=/,/==/,/=/,/\?/,/~/,/\./,/\^/,/<=/,/>=/,/</,/>/) },{scope:"number",match:/[0-9]+/},{scope:"punctuation",match:/[;\(\):\[\]\{\}]/ }]})})();export default hljsGrammar;