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:
26
network-poc/frontend/node_modules/prismjs/components/prism-ejs.js
generated
vendored
Normal file
26
network-poc/frontend/node_modules/prismjs/components/prism-ejs.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
(function (Prism) {
|
||||
|
||||
Prism.languages.ejs = {
|
||||
'delimiter': {
|
||||
pattern: /^<%[-_=]?|[-_]?%>$/,
|
||||
alias: 'punctuation'
|
||||
},
|
||||
'comment': /^#[\s\S]*/,
|
||||
'language-javascript': {
|
||||
pattern: /[\s\S]+/,
|
||||
inside: Prism.languages.javascript
|
||||
}
|
||||
};
|
||||
|
||||
Prism.hooks.add('before-tokenize', function (env) {
|
||||
var ejsPattern = /<%(?!%)[\s\S]+?%>/g;
|
||||
Prism.languages['markup-templating'].buildPlaceholders(env, 'ejs', ejsPattern);
|
||||
});
|
||||
|
||||
Prism.hooks.add('after-tokenize', function (env) {
|
||||
Prism.languages['markup-templating'].tokenizePlaceholders(env, 'ejs');
|
||||
});
|
||||
|
||||
Prism.languages.eta = Prism.languages.ejs;
|
||||
|
||||
}(Prism));
|
||||
Reference in New Issue
Block a user