Files
Agent-n8n/backups/exhibition-demo-backup-20250928-210916/node_modules/highlight.js/lib/languages/oxygene.js
Yep_Q 67f5dfbe50 feat: 实现多订单班支持系统
主要功能:
- 修改RequirementModal支持12个订单班选择
- 添加OrderClassIconMap图标映射组件
- Store中添加selectedOrderClass状态管理
- WorkflowPage支持传递orderClass参数
- web_result添加URL参数切换功能
- 创建order-class-handler.js动态处理页面主题

技术改进:
- 创建软链接关联订单班数据目录
- 生成wenlu.json和food.json数据结构
- 删除重复的web_result目录
- 添加测试页面test-order-class.html

影响范围:
- 展会策划系统现支持12个订单班
- 结果展示页面自动适配不同订单班主题
- 用户可选择不同行业生成对应方案

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-29 10:02:15 +08:00

102 lines
3.1 KiB
JavaScript

/*
Language: Oxygene
Author: Carlo Kok <ck@remobjects.com>
Description: Oxygene is built on the foundation of Object Pascal, revamped and extended to be a modern language for the twenty-first century.
Website: https://www.elementscompiler.com/elements/default.aspx
*/
function oxygene(hljs) {
const OXYGENE_KEYWORDS = {
$pattern: /\.?\w+/,
keyword:
'abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue ' +
'create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false ' +
'final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited ' +
'inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of ' +
'old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly ' +
'record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple ' +
'type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal ' +
'register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained'
};
const CURLY_COMMENT = hljs.COMMENT(
/\{/,
/\}/,
{
relevance: 0
}
);
const PAREN_COMMENT = hljs.COMMENT(
'\\(\\*',
'\\*\\)',
{
relevance: 10
}
);
const STRING = {
className: 'string',
begin: '\'',
end: '\'',
contains: [
{
begin: '\'\''
}
]
};
const CHAR_STRING = {
className: 'string',
begin: '(#\\d+)+'
};
const FUNCTION = {
className: 'function',
beginKeywords: 'function constructor destructor procedure method',
end: '[:;]',
keywords: 'function constructor|10 destructor|10 procedure|10 method|10',
contains: [
hljs.TITLE_MODE,
{
className: 'params',
begin: '\\(',
end: '\\)',
keywords: OXYGENE_KEYWORDS,
contains: [
STRING,
CHAR_STRING
]
},
CURLY_COMMENT,
PAREN_COMMENT
]
};
return {
name: 'Oxygene',
case_insensitive: true,
keywords: OXYGENE_KEYWORDS,
illegal: '("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',
contains: [
CURLY_COMMENT,
PAREN_COMMENT,
hljs.C_LINE_COMMENT_MODE,
STRING,
CHAR_STRING,
hljs.NUMBER_MODE,
FUNCTION,
{
className: 'class',
begin: '=\\bclass\\b',
end: 'end;',
keywords: OXYGENE_KEYWORDS,
contains: [
STRING,
CHAR_STRING,
CURLY_COMMENT,
PAREN_COMMENT,
hljs.C_LINE_COMMENT_MODE,
FUNCTION
]
}
]
};
}
module.exports = oxygene;