主要功能: - 修改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>
90 lines
2.1 KiB
JavaScript
90 lines
2.1 KiB
JavaScript
/*
|
|
Language: Pony
|
|
Author: Joe Eli McIlvain <joe.eli.mac@gmail.com>
|
|
Description: Pony is an open-source, object-oriented, actor-model,
|
|
capabilities-secure, high performance programming language.
|
|
Website: https://www.ponylang.io
|
|
*/
|
|
|
|
function pony(hljs) {
|
|
const KEYWORDS = {
|
|
keyword:
|
|
'actor addressof and as be break class compile_error compile_intrinsic ' +
|
|
'consume continue delegate digestof do else elseif embed end error ' +
|
|
'for fun if ifdef in interface is isnt lambda let match new not object ' +
|
|
'or primitive recover repeat return struct then trait try type until ' +
|
|
'use var where while with xor',
|
|
meta:
|
|
'iso val tag trn box ref',
|
|
literal:
|
|
'this false true'
|
|
};
|
|
|
|
const TRIPLE_QUOTE_STRING_MODE = {
|
|
className: 'string',
|
|
begin: '"""',
|
|
end: '"""',
|
|
relevance: 10
|
|
};
|
|
|
|
const QUOTE_STRING_MODE = {
|
|
className: 'string',
|
|
begin: '"',
|
|
end: '"',
|
|
contains: [ hljs.BACKSLASH_ESCAPE ]
|
|
};
|
|
|
|
const SINGLE_QUOTE_CHAR_MODE = {
|
|
className: 'string',
|
|
begin: '\'',
|
|
end: '\'',
|
|
contains: [ hljs.BACKSLASH_ESCAPE ],
|
|
relevance: 0
|
|
};
|
|
|
|
const TYPE_NAME = {
|
|
className: 'type',
|
|
begin: '\\b_?[A-Z][\\w]*',
|
|
relevance: 0
|
|
};
|
|
|
|
const PRIMED_NAME = {
|
|
begin: hljs.IDENT_RE + '\'',
|
|
relevance: 0
|
|
};
|
|
|
|
const NUMBER_MODE = {
|
|
className: 'number',
|
|
begin: '(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)',
|
|
relevance: 0
|
|
};
|
|
|
|
/**
|
|
* The `FUNCTION` and `CLASS` modes were intentionally removed to simplify
|
|
* highlighting and fix cases like
|
|
* ```
|
|
* interface Iterator[A: A]
|
|
* fun has_next(): Bool
|
|
* fun next(): A?
|
|
* ```
|
|
* where it is valid to have a function head without a body
|
|
*/
|
|
|
|
return {
|
|
name: 'Pony',
|
|
keywords: KEYWORDS,
|
|
contains: [
|
|
TYPE_NAME,
|
|
TRIPLE_QUOTE_STRING_MODE,
|
|
QUOTE_STRING_MODE,
|
|
SINGLE_QUOTE_CHAR_MODE,
|
|
PRIMED_NAME,
|
|
NUMBER_MODE,
|
|
hljs.C_LINE_COMMENT_MODE,
|
|
hljs.C_BLOCK_COMMENT_MODE
|
|
]
|
|
};
|
|
}
|
|
|
|
module.exports = pony;
|