主要功能: - 修改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>
85 lines
2.4 KiB
JavaScript
85 lines
2.4 KiB
JavaScript
Prism.languages.vala = Prism.languages.extend('clike', {
|
|
// Classes copied from prism-csharp
|
|
'class-name': [
|
|
{
|
|
// (Foo bar, Bar baz)
|
|
pattern: /\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,
|
|
inside: {
|
|
punctuation: /\./
|
|
}
|
|
},
|
|
{
|
|
// [Foo]
|
|
pattern: /(\[)[A-Z]\w*(?:\.\w+)*\b/,
|
|
lookbehind: true,
|
|
inside: {
|
|
punctuation: /\./
|
|
}
|
|
},
|
|
{
|
|
// class Foo : Bar
|
|
pattern: /(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,
|
|
lookbehind: true,
|
|
inside: {
|
|
punctuation: /\./
|
|
}
|
|
},
|
|
{
|
|
// class Foo
|
|
pattern: /((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,
|
|
lookbehind: true,
|
|
inside: {
|
|
punctuation: /\./
|
|
}
|
|
}
|
|
],
|
|
'keyword': /\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,
|
|
'function': /\b\w+(?=\s*\()/,
|
|
'number': /(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,
|
|
'operator': /\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,
|
|
'punctuation': /[{}[\];(),.:]/,
|
|
'constant': /\b[A-Z0-9_]+\b/
|
|
});
|
|
|
|
Prism.languages.insertBefore('vala', 'string', {
|
|
'raw-string': {
|
|
pattern: /"""[\s\S]*?"""/,
|
|
greedy: true,
|
|
alias: 'string'
|
|
},
|
|
'template-string': {
|
|
pattern: /@"[\s\S]*?"/,
|
|
greedy: true,
|
|
inside: {
|
|
'interpolation': {
|
|
pattern: /\$(?:\([^)]*\)|[a-zA-Z]\w*)/,
|
|
inside: {
|
|
'delimiter': {
|
|
pattern: /^\$\(?|\)$/,
|
|
alias: 'punctuation'
|
|
},
|
|
rest: Prism.languages.vala
|
|
}
|
|
},
|
|
'string': /[\s\S]+/
|
|
}
|
|
}
|
|
});
|
|
|
|
Prism.languages.insertBefore('vala', 'keyword', {
|
|
'regex': {
|
|
pattern: /\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,
|
|
greedy: true,
|
|
inside: {
|
|
'regex-source': {
|
|
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
|
|
lookbehind: true,
|
|
alias: 'language-regex',
|
|
inside: Prism.languages.regex
|
|
},
|
|
'regex-delimiter': /^\//,
|
|
'regex-flags': /^[a-z]+$/,
|
|
}
|
|
}
|
|
});
|