Files
Agent-n8n/backups/exhibition-demo-backup-20250928-210916/node_modules/refractor/lang/tremor.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

84 lines
2.5 KiB
JavaScript

'use strict'
module.exports = tremor
tremor.displayName = 'tremor'
tremor.aliases = []
function tremor(Prism) {
;(function (Prism) {
Prism.languages.tremor = {
comment: {
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
lookbehind: true
},
'interpolated-string': null,
// see below
extractor: {
pattern: /\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,
greedy: true,
inside: {
regex: {
pattern: /(^re)\|[\s\S]+/,
lookbehind: true
},
function: /^\w+/,
value: /\|[\s\S]+/
}
},
identifier: {
pattern: /`[^`]*`/,
greedy: true
},
function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,
keyword:
/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,
boolean: /\b(?:false|null|true)\b/i,
number:
/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,
'pattern-punctuation': {
pattern: /%(?=[({[])/,
alias: 'punctuation'
},
operator:
/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,
punctuation: /::|[;\[\]()\{\},.:]/
}
var interpolationPattern =
/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source
Prism.languages.tremor['interpolated-string'] = {
pattern: RegExp(
/(^|[^\\])/.source +
'(?:' +
'"""(?:' +
/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source +
'|' +
interpolationPattern +
')*"""' +
'|' +
'"(?:' +
/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source +
'|' +
interpolationPattern +
')*"' +
')'
),
lookbehind: true,
greedy: true,
inside: {
interpolation: {
pattern: RegExp(interpolationPattern),
inside: {
punctuation: /^#\{|\}$/,
expression: {
pattern: /[\s\S]+/,
inside: Prism.languages.tremor
}
}
},
string: /[\s\S]+/
}
}
Prism.languages.troy = Prism.languages['tremor']
Prism.languages.trickle = Prism.languages['tremor']
})(Prism)
}