diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-12-13 20:44:08 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-12-13 20:44:08 -0600 |
commit | abc0de079b895af1b705894eb2b63596e3e37274 (patch) | |
tree | c51d24dce55da8d9b227cbac6c2ef64a59d8e9dc /pyssg.xyz/live/static/hl/languages/hy.min.js | |
parent | db4b3736d4f45137a733ce5eb1e50aec968ca1d2 (diff) |
add pyssg.xyz configs and templates
Diffstat (limited to 'pyssg.xyz/live/static/hl/languages/hy.min.js')
-rw-r--r-- | pyssg.xyz/live/static/hl/languages/hy.min.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pyssg.xyz/live/static/hl/languages/hy.min.js b/pyssg.xyz/live/static/hl/languages/hy.min.js new file mode 100644 index 0000000..5a4b10e --- /dev/null +++ b/pyssg.xyz/live/static/hl/languages/hy.min.js @@ -0,0 +1,14 @@ +hljs.registerLanguage("hy",(()=>{"use strict";return e=>{ +var a="a-zA-Z_\\-!.?+*=<>&#'",t="["+a+"]["+a+"0-9/;:]*",i={$pattern:t, +"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~" +},r={begin:t,relevance:0},n={className:"number",begin:"[-+]?\\d+(\\.\\d+)?", +relevance:0},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null +}),o=e.COMMENT(";","$",{relevance:0}),l={className:"literal", +begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},c={begin:"[\\[\\{]",end:"[\\]\\}]"},d={ +className:"comment",begin:"\\^"+t},m=e.COMMENT("\\^\\{","\\}"),p={ +className:"symbol",begin:"[:]{1,2}"+t},u={begin:"\\(",end:"\\)"},f={ +endsWithParent:!0,relevance:0},g={className:"name",relevance:0,keywords:i, +begin:t,starts:f},h=[u,s,d,m,o,p,c,n,l,r] +;return u.contains=[e.COMMENT("comment",""),g,f],f.contains=h,c.contains=h,{ +name:"Hy",aliases:["hylang"],illegal:/\S/, +contains:[e.SHEBANG(),u,s,d,m,o,p,c,n,l]}}})());
\ No newline at end of file |