fix: handle end-idx check in inline macro parsing

This commit is contained in:
Mega Yu
2026-05-14 21:22:26 +08:00
parent 4807578d35
commit a4497a39c7

View File

@@ -375,7 +375,9 @@
(= \` c)
(let [run-length (backtick-run-length source idx)
end-idx (matching-backtick-index source idx run-length)]
(recur (+ idx run-length) end-idx))
(if end-idx
(recur (+ idx run-length) end-idx)
true))
(and (= \| c)
(some? code-end))