From 7253684c0238b08cb7436b0380147f00d4d8436e Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Mon, 9 Jun 2025 12:37:31 +0200 Subject: [PATCH] Improve debug syntax tree * Fix indentation CSS styling that wasn't working * Highlight the current node --- src/components/Editor.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 09b7461..b5056a1 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -81,11 +81,16 @@ // if debugSyntaxTree prop is set, display syntax tree for debugging if (this.debugSyntaxTree) { setInterval(() => { + const cursorPos = this.editor.view.state.selection.main.head function render(tree) { let lists = '' tree.iterate({ enter(type) { - lists += `