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:
30
network-poc/frontend/node_modules/prismjs/components/prism-rego.js
generated
vendored
Normal file
30
network-poc/frontend/node_modules/prismjs/components/prism-rego.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// https://www.openpolicyagent.org/docs/latest/policy-reference/
|
||||
|
||||
Prism.languages.rego = {
|
||||
'comment': /#.*/,
|
||||
'property': {
|
||||
pattern: /(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,
|
||||
lookbehind: true,
|
||||
greedy: true
|
||||
},
|
||||
'string': {
|
||||
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,
|
||||
lookbehind: true,
|
||||
greedy: true
|
||||
},
|
||||
|
||||
'keyword': /\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,
|
||||
'boolean': /\b(?:false|true)\b/,
|
||||
|
||||
'function': {
|
||||
pattern: /\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,
|
||||
inside: {
|
||||
'namespace': /\b\w+\b(?=\s*\.)/,
|
||||
'punctuation': /\./
|
||||
}
|
||||
},
|
||||
|
||||
'number': /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
|
||||
'operator': /[-+*/%|&]|[<>:=]=?|!=|\b_\b/,
|
||||
'punctuation': /[,;.\[\]{}()]/
|
||||
};
|
||||
Reference in New Issue
Block a user