详细说明: - 添加了V2版本的工作流页面和结果页面 - 更新了Serena记忆文件 - 添加了详细实施计划文档 - 优化了Vite配置 - 更新了项目文档CLAUDE.md - 构建了演示系统的dist版本 - 包含了exhibition-demo的完整依赖
34 lines
775 B
JavaScript
34 lines
775 B
JavaScript
'use strict'
|
|
|
|
module.exports = json
|
|
json.displayName = 'json'
|
|
json.aliases = ['webmanifest']
|
|
function json(Prism) {
|
|
// https://www.json.org/json-en.html
|
|
Prism.languages.json = {
|
|
property: {
|
|
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
lookbehind: true,
|
|
greedy: true
|
|
},
|
|
string: {
|
|
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
|
|
lookbehind: true,
|
|
greedy: true
|
|
},
|
|
comment: {
|
|
pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
|
greedy: true
|
|
},
|
|
number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
|
|
punctuation: /[{}[\],]/,
|
|
operator: /:/,
|
|
boolean: /\b(?:false|true)\b/,
|
|
null: {
|
|
pattern: /\bnull\b/,
|
|
alias: 'keyword'
|
|
}
|
|
}
|
|
Prism.languages.webmanifest = Prism.languages.json
|
|
}
|