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/cal.min.js | |
parent | db4b3736d4f45137a733ce5eb1e50aec968ca1d2 (diff) |
add pyssg.xyz configs and templates
Diffstat (limited to 'pyssg.xyz/live/static/hl/languages/cal.min.js')
-rw-r--r-- | pyssg.xyz/live/static/hl/languages/cal.min.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pyssg.xyz/live/static/hl/languages/cal.min.js b/pyssg.xyz/live/static/hl/languages/cal.min.js new file mode 100644 index 0000000..725be00 --- /dev/null +++ b/pyssg.xyz/live/static/hl/languages/cal.min.js @@ -0,0 +1,12 @@ +hljs.registerLanguage("cal",(()=>{"use strict";return e=>{ +const n="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{ +relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"string", +begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/ +},i={className:"function",beginKeywords:"procedure",end:/[:;]/, +keywords:"procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/, +end:/\)/,keywords:n,contains:[r,s]}].concat(a)},t={className:"class", +begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)", +returnBegin:!0,contains:[e.TITLE_MODE,i]};return{name:"C/AL", +case_insensitive:!0,keywords:{keyword:n,literal:"false true"},illegal:/\/\*/, +contains:[r,s,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0 +},{className:"string",begin:'"',end:'"'},e.NUMBER_MODE,t,i]}}})());
\ No newline at end of file |