]> luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/leaf.min.js
Initial commit.
[flow-web.git] / static / highlight / languages / leaf.min.js
1 /*! `leaf` grammar compiled for Highlight.js 11.11.1 */
2 (()=>{var a=(()=>{"use strict";return a=>{
3 const e=/([A-Za-z_][A-Za-z_0-9]*)?/,n={scope:"params",begin:/\(/,
4 end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',
5 end:'"'},{scope:"keyword",match:"true|false|in"},{scope:"variable",
6 match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",
7 match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},t={match:[e,/(?=\()/],
8 scope:{1:"keyword"},contains:[n]};return n.contains.unshift(t),{name:"Leaf",
9 contains:[{match:[/#+/,e,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{
10 contains:[{match:/\:/,scope:"punctuation"}]},contains:[n]},{match:[/#+/,e,/:?/],
11 scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}})()
12 ;hljs.registerLanguage("leaf",a)})();