diff options
Diffstat (limited to 'pyssg.xyz/live/static/hl/languages/leaf.min.js')
-rw-r--r-- | pyssg.xyz/live/static/hl/languages/leaf.min.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pyssg.xyz/live/static/hl/languages/leaf.min.js b/pyssg.xyz/live/static/hl/languages/leaf.min.js new file mode 100644 index 0000000..4b0daae --- /dev/null +++ b/pyssg.xyz/live/static/hl/languages/leaf.min.js @@ -0,0 +1,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]*"}]}]}]})})());
\ No newline at end of file |