Skip to content

Commit 60e634b

Browse files
committed
Moved to FrontInstance
1 parent b4d7661 commit 60e634b

11 files changed

+260
-9927
lines changed

.DS_Store

-4 KB
Binary file not shown.

dist/kernel.js

+10
Original file line numberDiff line numberDiff line change
@@ -28350,6 +28350,7 @@ ViewPlugin.fromClass(class {
2835028350
const { doc } = view.state;
2835128351
const decorations = [];
2835228352
const stack = [];
28353+
const decos = view.docView?.decorations;
2835328354
const colors = generateColors();
2835428355

2835528356
for (let pos = 0; pos < doc.length; pos += 1) {
@@ -28360,6 +28361,15 @@ ViewPlugin.fromClass(class {
2836028361
const open = stack.pop();
2836128362
if (open && open.type === this.getMatchingBracket(char)) {
2836228363
const color = colors[stack.length % colors.length];
28364+
if (decos) {for (let i=0; i<decos.length; ++i) {
28365+
const range = decos[i];
28366+
if (!range.chunk[0]) continue;
28367+
console.warn([range.chunkPos[0], range.chunk[0].from, range.chunk[0].to]);
28368+
if (open.from < range.chunkPos[0] + range.chunk[0].from && range.chunkPos[0] + range.chunk[0].to < pos) {
28369+
console.warn(range);
28370+
}
28371+
28372+
}}
2836328373
decorations.push(
2836428374
Decoration.mark({ class: `rainbow-bracket-${color}` }).range(open.from, open.from + 1),
2836528375
Decoration.mark({ class: `rainbow-bracket-${color}` }).range(pos, pos + 1),

dist/kernel.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/.DS_Store

-6 KB
Binary file not shown.
-6 KB
Binary file not shown.

0 commit comments

Comments
 (0)