]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/cal.js
1 /*! `cal` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Author: Kenneth Fuglsang Christensen <kfuglsang@gmail.com>
9 Description: Provides highlighting of Microsoft Dynamics NAV C/AL code files
10 Website: https://docs.microsoft.com/en-us/dynamics-nav/programming-in-c-al
14 /** @type LanguageFn */
16 const regex
= hljs
.regex
;
45 const LITERALS
= 'false true';
46 const COMMENT_MODES
= [
47 hljs
.C_LINE_COMMENT_MODE
,
63 contains: [ { begin: /''/ } ]
71 begin: '\\b\\d+(\\.\\d+)?(DT|D|T)',
74 const DBL_QUOTED_VARIABLE
= {
75 className: 'string', // not a string technically but makes sense to be highlighted in the same style
107 const OBJECT_TYPES
= [
122 regex
.either(...OBJECT_TYPES
),
139 match: /[\w]+(?=\=)/,
146 case_insensitive: true,
169 hljs
.registerLanguage('cal', hljsGrammar
);