]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/ceylon.js
1 /*! `ceylon` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= (function () {
7 Author: Lucas Werkmeister <mail@lucaswerkmeister.de>
8 Website: https://ceylon-lang.org
12 /** @type LanguageFn */
13 function ceylon(hljs
) {
14 // 2.3. Identifiers and keywords
60 // 7.4.1 Declaration Modifiers
61 const DECLARATION_MODIFIERS
= [
77 // 7.4.2 Documentation
78 const DOCUMENTATION
= [
104 // string literal or template
119 begin: '#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?',
123 SUBST
.contains
= EXPRESSIONS
;
128 keyword: KEYWORDS
.concat(DECLARATION_MODIFIERS
),
131 illegal: '\\$[^01]|#[^0-9a-fA-F]',
133 hljs
.C_LINE_COMMENT_MODE
,
134 hljs
.COMMENT('/\\*', '\\*/', { contains: [ 'self' ] }),
136 // compiler annotation
138 begin: '@[a-z]\\w*(?::"[^"]*")?'
140 ].concat(EXPRESSIONS
)
148 export default hljsGrammar
;