Frontend uudelleenrakennettu: Astro-komponentit, Wasm pääsäikeessä, ei Workeria
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>
This commit is contained in:
60
network-poc/frontend/node_modules/prismjs/components/prism-chaiscript.js
generated
vendored
Normal file
60
network-poc/frontend/node_modules/prismjs/components/prism-chaiscript.js
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
Prism.languages.chaiscript = Prism.languages.extend('clike', {
|
||||
'string': {
|
||||
pattern: /(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,
|
||||
lookbehind: true,
|
||||
greedy: true
|
||||
},
|
||||
'class-name': [
|
||||
{
|
||||
// e.g. class Rectangle { ... }
|
||||
pattern: /(\bclass\s+)\w+/,
|
||||
lookbehind: true
|
||||
},
|
||||
{
|
||||
// e.g. attr Rectangle::height, def Rectangle::area() { ... }
|
||||
pattern: /(\b(?:attr|def)\s+)\w+(?=\s*::)/,
|
||||
lookbehind: true
|
||||
}
|
||||
],
|
||||
'keyword': /\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,
|
||||
'number': [
|
||||
Prism.languages.cpp.number,
|
||||
/\b(?:Infinity|NaN)\b/
|
||||
],
|
||||
'operator': />>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/,
|
||||
});
|
||||
|
||||
Prism.languages.insertBefore('chaiscript', 'operator', {
|
||||
'parameter-type': {
|
||||
// e.g. def foo(int x, Vector y) {...}
|
||||
pattern: /([,(]\s*)\w+(?=\s+\w)/,
|
||||
lookbehind: true,
|
||||
alias: 'class-name'
|
||||
},
|
||||
});
|
||||
|
||||
Prism.languages.insertBefore('chaiscript', 'string', {
|
||||
'string-interpolation': {
|
||||
pattern: /(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,
|
||||
lookbehind: true,
|
||||
greedy: true,
|
||||
inside: {
|
||||
'interpolation': {
|
||||
pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,
|
||||
lookbehind: true,
|
||||
inside: {
|
||||
'interpolation-expression': {
|
||||
pattern: /(^\$\{)[\s\S]+(?=\}$)/,
|
||||
lookbehind: true,
|
||||
inside: Prism.languages.chaiscript
|
||||
},
|
||||
'interpolation-punctuation': {
|
||||
pattern: /^\$\{|\}$/,
|
||||
alias: 'punctuation'
|
||||
}
|
||||
}
|
||||
},
|
||||
'string': /[\s\S]+/
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user