From 31a6a0f960b1baa1ba45d15f936de06de43f1e22 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 24 Apr 2025 21:39:10 +0200 Subject: [PATCH] devlog: tree-sitter error checking --- content/devlog/2025.smd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/devlog/2025.smd b/content/devlog/2025.smd index 9a23ff3..04d0380 100644 --- a/content/devlog/2025.smd +++ b/content/devlog/2025.smd @@ -16,6 +16,15 @@ You can [subscribe to this page via RSS]($link.page('devlog').alternative('rss') devlog entries in the [archive](/devlog/). +## [tree-sitter parse error detection]($section.id("2025-04-24T21:39:00")) + +Today I added error queries and they are used to check for tree-sitter parsing errors. If +tree-sitter reports a syntax error it may be because of an error in the file, or just because +the tree-sitter partial reparse has become confused due to over complicated edits. Either way we +now trigger a full reparse to be safe and make sure that the syntax tree doesn't get stuck in a +bad state. + + ## [mini git status]($section.id("2025-04-23T22:31:00")) The branch widget now displays a mini git status along with the branch name.