cal.min.js 1.2 KB

123456789101112131415
  1. /*! `cal` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var e=(()=>{"use strict";return e=>{
  3. const n=e.regex,a=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],r=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{
  4. relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],t={className:"string",
  5. begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/
  6. },i={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",
  7. 3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,
  8. keywords:a,contains:[t,s,e.NUMBER_MODE]},...r]},o={
  9. match:[/OBJECT/,/\s+/,n.either("Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],
  10. relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{
  11. name:"C/AL",case_insensitive:!0,keywords:{keyword:a,literal:"false true"},
  12. illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0
  13. },t,s,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},{
  14. className:"string",begin:'"',end:'"'},e.NUMBER_MODE,o,i]}}})()
  15. ;hljs.registerLanguage("cal",e)})();