Files
cloud-code/claude-code-source/node_modules/.ignored/highlight.js/lib/languages/monkey.js
janlaywss 6187147b74 reconstruct and build @anthropic-ai/claude-code source from source map
- Extract 4756 source files from cli.js.map (57MB)
- Set up Bun build system with bun:bundle feature flag shim
- Configure 90+ compile-time feature flags matching production defaults
- Inject MACRO constants (VERSION, BUILD_TIME, etc.)
- Create stubs for private packages (color-diff-napi, modifiers-napi, etc.)
- Install all public dependencies via pnpm
- Patch commander v14 to allow multi-char short flags (-d2e)
- Build output: dist/cli.js (22MB), verified working
2026-03-31 19:19:50 +08:00

90 lines
2.2 KiB
JavaScript

/*
Language: Monkey
Description: Monkey2 is an easy to use, cross platform, games oriented programming language from Blitz Research.
Author: Arthur Bikmullin <devolonter@gmail.com>
Website: https://blitzresearch.itch.io/monkey2
*/
function monkey(hljs) {
const NUMBER = {
className: 'number',
relevance: 0,
variants: [
{
begin: '[$][a-fA-F0-9]+'
},
hljs.NUMBER_MODE
]
};
return {
name: 'Monkey',
case_insensitive: true,
keywords: {
keyword: 'public private property continue exit extern new try catch ' +
'eachin not abstract final select case default const local global field ' +
'end if then else elseif endif while wend repeat until forever for ' +
'to step next return module inline throw import',
built_in: 'DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil ' +
'Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI',
literal: 'true false null and or shl shr mod'
},
illegal: /\/\*/,
contains: [
hljs.COMMENT('#rem', '#end'),
hljs.COMMENT(
"'",
'$',
{
relevance: 0
}
),
{
className: 'function',
beginKeywords: 'function method',
end: '[(=:]|$',
illegal: /\n/,
contains: [ hljs.UNDERSCORE_TITLE_MODE ]
},
{
className: 'class',
beginKeywords: 'class interface',
end: '$',
contains: [
{
beginKeywords: 'extends implements'
},
hljs.UNDERSCORE_TITLE_MODE
]
},
{
className: 'built_in',
begin: '\\b(self|super)\\b'
},
{
className: 'meta',
begin: '\\s*#',
end: '$',
keywords: {
'meta-keyword': 'if else elseif endif end then'
}
},
{
className: 'meta',
begin: '^\\s*strict\\b'
},
{
beginKeywords: 'alias',
end: '=',
contains: [ hljs.UNDERSCORE_TITLE_MODE ]
},
hljs.QUOTE_STRING_MODE,
NUMBER
]
};
}
module.exports = monkey;