]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/pony.js
1 /*! `pony` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= (function () {
7 Author: Joe Eli McIlvain <joe.eli.mac@gmail.com>
8 Description: Pony is an open-source, object-oriented, actor-model,
9 capabilities-secure, high performance programming language.
10 Website: https://www.ponylang.io
17 'actor addressof and as be break class compile_error compile_intrinsic '
18 + 'consume continue delegate digestof do else elseif embed end error '
19 + 'for fun if ifdef in interface is isnt lambda let match new not object '
20 + 'or primitive recover repeat return struct then trait try type until '
21 + 'use var where while with xor',
23 'iso val tag trn box ref',
28 const TRIPLE_QUOTE_STRING_MODE
= {
35 const QUOTE_STRING_MODE
= {
39 contains: [ hljs
.BACKSLASH_ESCAPE
]
42 const SINGLE_QUOTE_CHAR_MODE
= {
46 contains: [ hljs
.BACKSLASH_ESCAPE
],
52 begin: '\\b_?[A-Z][\\w]*',
57 begin: hljs
.IDENT_RE
+ '\'',
63 begin: '(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)',
68 * The `FUNCTION` and `CLASS` modes were intentionally removed to simplify
69 * highlighting and fix cases like
71 * interface Iterator[A: A]
72 * fun has_next(): Bool
75 * where it is valid to have a function head without a body
83 TRIPLE_QUOTE_STRING_MODE
,
85 SINGLE_QUOTE_CHAR_MODE
,
88 hljs
.C_LINE_COMMENT_MODE
,
89 hljs
.C_BLOCK_COMMENT_MODE
98 export default hljsGrammar
;