1
|
{"version":3,"file":"highlight/cal.js?v=53c4da115fdbffc2f2de","mappings":"2GAuGAA,EAAOC,QA/FP,SAAaC,GACX,MAAMC,EACJ,yHAGIC,EAAgB,CACpBF,EAAKG,oBACLH,EAAKI,QACH,KACA,KACA,CACEC,UAAW,IAGfL,EAAKI,QACH,OACA,OACA,CACEC,UAAW,MAIXC,EAAS,CACbC,UAAW,SACXC,MAAO,IACPC,IAAK,IACLC,SAAU,CAAC,CACTF,MAAO,QAGLG,EAAc,CAClBJ,UAAW,SACXC,MAAO,WAaHI,EAAY,CAChBL,UAAW,WACXM,cAAe,YACfJ,IAAK,OACLK,SAAU,eACVJ,SAAU,CACRV,EAAKe,WACL,CACER,UAAW,SACXC,MAAO,KACPC,IAAK,KACLK,SAAUb,EACVS,SAAU,CACRJ,EACAK,KAGJK,OAAOd,IAGLe,EAAS,CACbV,UAAW,QACXC,MAAO,gGACPU,aAAa,EACbR,SAAU,CACRV,EAAKe,WACLH,IAIJ,MAAO,CACLO,KAAM,OACNC,kBAAkB,EAClBN,SAAU,CACRO,QAASpB,EACTqB,QA5Ea,cA8EfC,QAAS,OACTb,SAAU,CACRJ,EACAK,EAnDS,CACXJ,UAAW,SACXC,MAAO,4BACPH,UAAW,GAEe,CAC1BE,UAAW,SACXC,MAAO,IACPC,IAAK,KA8CHT,EAAKwB,YACLP,EACAL","sources":["webpack:///text/node_modules/highlight.js/lib/languages/cal.js"],"sourcesContent":["/*\nLanguage: C/AL\nAuthor: Kenneth Fuglsang Christensen <kfuglsang@gmail.com>\nDescription: Provides highlighting of Microsoft Dynamics NAV C/AL code files\nWebsite: https://docs.microsoft.com/en-us/dynamics-nav/programming-in-c-al\n*/\n\n/** @type LanguageFn */\nfunction cal(hljs) {\n const KEYWORDS =\n 'div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to ' +\n 'until while with var';\n const LITERALS = 'false true';\n const COMMENT_MODES = [\n hljs.C_LINE_COMMENT_MODE,\n hljs.COMMENT(\n /\\{/,\n /\\}/,\n {\n relevance: 0\n }\n ),\n hljs.COMMENT(\n /\\(\\*/,\n /\\*\\)/,\n {\n relevance: 10\n }\n )\n ];\n const STRING = {\n className: 'string',\n begin: /'/,\n end: /'/,\n contains: [{\n begin: /''/\n }]\n };\n const CHAR_STRING = {\n className: 'string',\n begin: /(#\\d+)+/\n };\n const DATE = {\n className: 'number',\n begin: '\\\\b\\\\d+(\\\\.\\\\d+)?(DT|D|T)',\n relevance: 0\n };\n const DBL_QUOTED_VARIABLE = {\n className: 'string', // not a string technically but makes sense to be highlighted in the same style\n begin: '\"',\n end: '\"'\n };\n\n const PROCEDURE = {\n className: 'function',\n beginKeywords: 'procedure',\n end: /[:;]/,\n keywords: 'procedure|10',\n contains: [\n hljs.TITLE_MODE,\n {\n className: 'params',\n begin: /\\(/,\n end: /\\)/,\n keywords: KEYWORDS,\n contains: [\n STRING,\n CHAR_STRING\n ]\n }\n ].concat(COMMENT_MODES)\n };\n\n const OBJECT = {\n className: 'class',\n begin: 'OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\\\d+) ([^\\\\r\\\\n]+)',\n returnBegin: true,\n contains: [\n hljs.TITLE_MODE,\n PROCEDURE\n ]\n };\n\n return {\n name: 'C/AL',\n case_insensitive: true,\n keywords: {\n keyword: KEYWORDS,\n literal: LITERALS\n },\n illegal: /\\/\\*/,\n contains: [\n STRING,\n CHAR_STRING,\n DATE,\n DBL_QUOTED_VARIABLE,\n hljs.NUMBER_MODE,\n OBJECT,\n PROCEDURE\n ]\n };\n}\n\nmodule.exports = cal;\n"],"names":["module","exports","hljs","KEYWORDS","COMMENT_MODES","C_LINE_COMMENT_MODE","COMMENT","relevance","STRING","className","begin","end","contains","CHAR_STRING","PROCEDURE","beginKeywords","keywords","TITLE_MODE","concat","OBJECT","returnBegin","name","case_insensitive","keyword","literal","illegal","NUMBER_MODE"],"sourceRoot":""}
|