详细说明: - 基于文旅订单班框架复制创建food-order-demo项目 - 修改端口配置为4174避免冲突 - 更新LandingPage为青莳轻食主题(绿色健康风格) - 重新定义7个食品行业专业Agent: * 市场研究专家:轻食市场分析、客群画像 * 营养配方师:营养成分配比、低卡高蛋白设计 * 供应链管理专家:有机食材供应、溯源体系 * 品牌策划师:品牌定位、店铺空间布局 * 财务分析师:投资预算、ROI分析 * 运营管理专家:运营流程、品控标准 * 食品创业导师:中央协调、方案整合 - 创建专用启动脚本start.sh - 验证系统可正常运行在端口4174 - 实现代码复用率90%,符合预期目标 影响文件: web_frontend/food-order-demo/ 技术栈: React 18 + TypeScript + Tailwind CSS + Zustand
76 lines
2.4 KiB
JavaScript
76 lines
2.4 KiB
JavaScript
/* eslint-disable no-misleading-character-class */
|
|
|
|
// 1C:Enterprise
|
|
// https://github.com/Diversus23/
|
|
//
|
|
Prism.languages.bsl = {
|
|
'comment': /\/\/.*/,
|
|
'string': [
|
|
// Строки
|
|
// Strings
|
|
{
|
|
pattern: /"(?:[^"]|"")*"(?!")/,
|
|
greedy: true
|
|
},
|
|
// Дата и время
|
|
// Date & time
|
|
{
|
|
pattern: /'(?:[^'\r\n\\]|\\.)*'/
|
|
}
|
|
],
|
|
'keyword': [
|
|
{
|
|
// RU
|
|
pattern: /(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,
|
|
lookbehind: true
|
|
},
|
|
{
|
|
// EN
|
|
pattern: /\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i
|
|
}
|
|
],
|
|
'number': {
|
|
pattern: /(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,
|
|
lookbehind: true
|
|
},
|
|
'operator': [
|
|
/[<>+\-*/]=?|[%=]/,
|
|
// RU
|
|
{
|
|
pattern: /(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,
|
|
lookbehind: true
|
|
},
|
|
// EN
|
|
{
|
|
pattern: /\b(?:and|not|or)\b/i
|
|
}
|
|
],
|
|
'punctuation': /\(\.|\.\)|[()\[\]:;,.]/,
|
|
'directive': [
|
|
// Теги препроцессора вида &Клиент, &Сервер, ...
|
|
// Preprocessor tags of the type &Client, &Server, ...
|
|
{
|
|
pattern: /^([ \t]*)&.*/m,
|
|
lookbehind: true,
|
|
greedy: true,
|
|
alias: 'important'
|
|
},
|
|
// Инструкции препроцессора вида:
|
|
// #Если Сервер Тогда
|
|
// ...
|
|
// #КонецЕсли
|
|
// Preprocessor instructions of the form:
|
|
// #If Server Then
|
|
// ...
|
|
// #EndIf
|
|
{
|
|
pattern: /^([ \t]*)#.*/gm,
|
|
lookbehind: true,
|
|
greedy: true,
|
|
alias: 'important'
|
|
}
|
|
]
|
|
};
|
|
|
|
Prism.languages.oscript = Prism.languages['bsl'];
|