]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/leaf.min.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / leaf.min.js
1 /*! `leaf` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar=(()=>{"use strict";return a=>{
3 const t=/([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:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},e={match:[t,/(?=\()/],
8 scope:{1:"keyword"},contains:[n]};return n.contains.unshift(e),{name:"Leaf",
9 contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{
10 contains:[{match:/\:/,scope:"punctuation"}]},contains:[n]},{match:[/#+/,t,/:?/],
11 scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}})()
12 ;export default hljsGrammar;