]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/ceylon.js
1 /*! `ceylon` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Author: Lucas Werkmeister <mail@lucaswerkmeister.de>
9 Website: https://ceylon-lang.org
13 /** @type LanguageFn */
14 function ceylon(hljs
) {
15 // 2.3. Identifiers and keywords
61 // 7.4.1 Declaration Modifiers
62 const DECLARATION_MODIFIERS
= [
78 // 7.4.2 Documentation
79 const DOCUMENTATION
= [
105 // string literal or template
120 begin: '#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?',
124 SUBST
.contains
= EXPRESSIONS
;
129 keyword: KEYWORDS
.concat(DECLARATION_MODIFIERS
),
132 illegal: '\\$[^01]|#[^0-9a-fA-F]',
134 hljs
.C_LINE_COMMENT_MODE
,
135 hljs
.COMMENT('/\\*', '\\*/', { contains: [ 'self' ] }),
137 // compiler annotation
139 begin: '@[a-z]\\w*(?::"[^"]*")?'
141 ].concat(EXPRESSIONS
)
149 hljs
.registerLanguage('ceylon', hljsGrammar
);