Vanha frontend siirretty temp/. Uusi rakenne: - StatusBar.astro, Terminal.astro, Editor.astro, Guide.astro - global.css erillinen - Wasm pääsäikeessä (ei Worker — yksinkertainen, debugattava) - Tab-completion, dropdown, projektikortti, Monaco, GUIDE.md - Ei tokenisointia eikä koodilaboratoriota Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
592 B
JavaScript
28 lines
592 B
JavaScript
// 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;
|