]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/monkey.js
1 /*! `monkey` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Description: Monkey2 is an easy to use, cross platform, games oriented programming language from Blitz Research.
9 Author: Arthur Bikmullin <devolonter@gmail.com>
10 Website: https://blitzresearch.itch.io/monkey2
14 function monkey(hljs
) {
19 { begin: '[$][a-fA-F0-9]+' },
23 const FUNC_DEFINITION
= {
28 hljs
.UNDERSCORE_IDENT_RE
,
36 const CLASS_DEFINITION
= {
39 /(class|interface|extends|implements)/,
41 hljs
.UNDERSCORE_IDENT_RE
,
135 // not positive, but these are not literals
145 case_insensitive: true,
153 hljs
.COMMENT('#rem', '#end'),
162 className: 'variable.language',
163 begin: /\b(self|super)\b/
169 keywords: { keyword: 'if else elseif endif end then' }
179 beginKeywords: 'alias',
181 contains: [ hljs
.UNDERSCORE_TITLE_MODE
]
183 hljs
.QUOTE_STRING_MODE
,
193 hljs
.registerLanguage('monkey', hljsGrammar
);