1
|
{"version":3,"file":"highlight/ceylon.js?v=e948a1599da0916a2992","mappings":"uFAiFAA,EAAOC,QA1EP,SAAgBC,GAEd,MAAMC,EACJ,iRAWIC,EAAQ,CACZC,UAAW,QACXC,cAAc,EACdC,YAAY,EACZC,MAAO,KACPC,IAAK,KACLC,SAAUP,EACVQ,UAAW,IAEPC,EAAc,CAClB,CAEEP,UAAW,SACXG,MAAO,MACPC,IAAK,MACLE,UAAW,IAEb,CAEEN,UAAW,SACXG,MAAO,IACPC,IAAK,IACLI,SAAU,CAACT,IAEb,CAEEC,UAAW,SACXG,MAAO,IACPC,IAAK,KAEP,CAEEJ,UAAW,SACXG,MAAO,gFACPG,UAAW,IAKf,OAFAP,EAAMS,SAAWD,EAEV,CACLE,KAAM,SACNJ,SAAU,CACRK,QAASZ,EAAAA,wHACTa,KA5CF,oCA8CAC,QAAS,yBACTJ,SAAU,CACRX,EAAKgB,oBACLhB,EAAKiB,QAAQ,OAAQ,OAAQ,CAC3BN,SAAU,CAAC,UAEb,CAEER,UAAW,OACXG,MAAO,4BAETY,OAAOR","sources":["webpack:///text/node_modules/highlight.js/lib/languages/ceylon.js"],"sourcesContent":["/*\nLanguage: Ceylon\nAuthor: Lucas Werkmeister <mail@lucaswerkmeister.de>\nWebsite: https://ceylon-lang.org\n*/\n\n/** @type LanguageFn */\nfunction ceylon(hljs) {\n // 2.3. Identifiers and keywords\n const KEYWORDS =\n 'assembly module package import alias class interface object given value ' +\n 'assign void function new of extends satisfies abstracts in out return ' +\n 'break continue throw assert dynamic if else switch case for while try ' +\n 'catch finally then let this outer super is exists nonempty';\n // 7.4.1 Declaration Modifiers\n const DECLARATION_MODIFIERS =\n 'shared abstract formal default actual variable late native deprecated ' +\n 'final sealed annotation suppressWarnings small';\n // 7.4.2 Documentation\n const DOCUMENTATION =\n 'doc by license see throws tagged';\n const SUBST = {\n className: 'subst',\n excludeBegin: true,\n excludeEnd: true,\n begin: /``/,\n end: /``/,\n keywords: KEYWORDS,\n relevance: 10\n };\n const EXPRESSIONS = [\n {\n // verbatim string\n className: 'string',\n begin: '\"\"\"',\n end: '\"\"\"',\n relevance: 10\n },\n {\n // string literal or template\n className: 'string',\n begin: '\"',\n end: '\"',\n contains: [SUBST]\n },\n {\n // character literal\n className: 'string',\n begin: \"'\",\n end: \"'\"\n },\n {\n // numeric literal\n className: 'number',\n begin: '#[0-9a-fA-F_]+|\\\\$[01_]+|[0-9_]+(?:\\\\.[0-9_](?:[eE][+-]?\\\\d+)?)?[kMGTPmunpf]?',\n relevance: 0\n }\n ];\n SUBST.contains = EXPRESSIONS;\n\n return {\n name: 'Ceylon',\n keywords: {\n keyword: KEYWORDS + ' ' + DECLARATION_MODIFIERS,\n meta: DOCUMENTATION\n },\n illegal: '\\\\$[^01]|#[^0-9a-fA-F]',\n contains: [\n hljs.C_LINE_COMMENT_MODE,\n hljs.COMMENT('/\\\\*', '\\\\*/', {\n contains: ['self']\n }),\n {\n // compiler annotation\n className: 'meta',\n begin: '@[a-z]\\\\w*(?::\"[^\"]*\")?'\n }\n ].concat(EXPRESSIONS)\n };\n}\n\nmodule.exports = ceylon;\n"],"names":["module","exports","hljs","KEYWORDS","SUBST","className","excludeBegin","excludeEnd","begin","end","keywords","relevance","EXPRESSIONS","contains","name","keyword","meta","illegal","C_LINE_COMMENT_MODE","COMMENT","concat"],"sourceRoot":""}
|