Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions JuliaSnail.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down