主要功能: - 修改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>
52 lines
1.4 KiB
JavaScript
52 lines
1.4 KiB
JavaScript
// https://gn.googlesource.com/gn/+/refs/heads/main/docs/reference.md#grammar
|
|
|
|
Prism.languages.gn = {
|
|
'comment': {
|
|
pattern: /#.*/,
|
|
greedy: true
|
|
},
|
|
'string-literal': {
|
|
pattern: /(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,
|
|
lookbehind: true,
|
|
greedy: true,
|
|
inside: {
|
|
'interpolation': {
|
|
pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,
|
|
lookbehind: true,
|
|
inside: {
|
|
'number': /^\$0x[\s\S]{2}$/,
|
|
'variable': /^\$\w+$/,
|
|
'interpolation-punctuation': {
|
|
pattern: /^\$\{|\}$/,
|
|
alias: 'punctuation'
|
|
},
|
|
'expression': {
|
|
pattern: /[\s\S]+/,
|
|
inside: null // see below
|
|
}
|
|
}
|
|
},
|
|
'string': /[\s\S]+/
|
|
}
|
|
},
|
|
|
|
'keyword': /\b(?:else|if)\b/,
|
|
'boolean': /\b(?:false|true)\b/,
|
|
'builtin-function': {
|
|
// a few functions get special highlighting to improve readability
|
|
pattern: /\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,
|
|
alias: 'keyword'
|
|
},
|
|
'function': /\b[a-z_]\w*(?=\s*\()/i,
|
|
'constant': /\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,
|
|
|
|
'number': /-?\b\d+\b/,
|
|
|
|
'operator': /[-+!=<>]=?|&&|\|\|/,
|
|
'punctuation': /[(){}[\],.]/
|
|
};
|
|
|
|
Prism.languages.gn['string-literal'].inside['interpolation'].inside['expression'].inside = Prism.languages.gn;
|
|
|
|
Prism.languages.gni = Prism.languages.gn;
|