branch: elpa/typst-ts-mode
commit 9be8012c74aec35d1410b50d420ada0369a4f862
Author: Gabriel Scherer <[email protected]>
Commit: Gabriel Scherer <[email protected]>
fix: ts-watch-mode, include hints in error output
Before:
error: failed to load file (access denied)
┌─ slides.typ:652:14
│
652 │ #bibliography("../suspended.bib", title: none, style:
"./gasche-author-date.csl")
│ ^^^^^^^^^^^^^^^^^^
│
After:
error: failed to load file (access denied)
┌─ slides.typ:652:14
│
652 │ #bibliography("../suspended.bib", title: none, style:
"./gasche-author-date.csl")
│ ^^^^^^^^^^^^^^^^^^
│
= hint: cannot read file outside of project root
= hint: you can adjust the project root with the --root argument
---
typst-ts-watch-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/typst-ts-watch-mode.el b/typst-ts-watch-mode.el
index 90fd03b80e9..f80fee30f07 100644
--- a/typst-ts-watch-mode.el
+++ b/typst-ts-watch-mode.el
@@ -51,7 +51,7 @@ PROC: process; OUTPUT: new output from PROC."
(+ not-newline) ":" ; file
(+ num) ":" ; start-line
(+ num) "\n" ; start-col
- (+ (+ (or blank num)) "│" (* not-newline) "\n")))
+ (+ (+ (or blank num)) (or "│" "=") (* not-newline) "\n")))
(next-match-start-pos 0)
res-output)
(while (string-match re output next-match-start-pos)