summaryrefslogtreecommitdiff
path: root/pyssg.xyz/live/static/hl/languages/leaf.min.js
blob: 4b0daae9809c89d854a1921a8a0927c01f12763e (plain)
1
2
3
4
5
6
hljs.registerLanguage("leaf",(()=>{"use strict";return e=>({name:"Leaf",
contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,
returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{
className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",
begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',
end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]})})());