1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-21 07:33:54 +01:00
LocalCDN-Firefox-Chrome-Brave/resources/highlight.js/10.7.3/leaf.min.jsm

6 lines
440 B
JavaScript

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]*"}]}]}]})})());