From 6f8952dbb4e0e68482117014f96def085d4adaf3 Mon Sep 17 00:00:00 2001 From: MasonProtter Date: Thu, 27 Feb 2025 18:17:53 +0100 Subject: [PATCH] fix parse calls in JuliaSyntax.jl --- JuliaSnail.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JuliaSnail.jl b/JuliaSnail.jl index ccdef2b..cc27aae 100644 --- a/JuliaSnail.jl +++ b/JuliaSnail.jl @@ -630,7 +630,7 @@ from outermost to innermost. Returns an Elisp-compatible list starting with :list followed by module names. """ function moduleat(encodedbuf, byteloc) - tree = parse(encodedbuf) + tree = JS.parseall(JS.SyntaxNode, encodedbuf; ignore_errors=true) path = pathat(tree, byteloc) modules = [] for node in path @@ -661,7 +661,7 @@ Returns an Elisp-compatible list containing: Returns nothing if no block is found at the location. """ function blockat(encodedbuf, byteloc) - tree = parse(encodedbuf) + tree = JS.parseall(JS.SyntaxNode, encodedbuf; ignore_errors=true) path = pathat(tree, byteloc) modules = [] description = nothing