branch: elpa/typst-ts-mode
commit ea69e2f7f61708a8aebcddf2958fd65681f6439d
Author: Ziqi Yang <mr.ziqiy...@gmail.com>
Commit: Ziqi Yang <mr.ziqiy...@gmail.com>

    fix: don't indent content inside raw block
---
 typst-ts-mode.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/typst-ts-mode.el b/typst-ts-mode.el
index cd69a03f6b..63d231cbf9 100644
--- a/typst-ts-mode.el
+++ b/typst-ts-mode.el
@@ -488,6 +488,10 @@ TYPES."
        ((parent-is "content") parent-bol ,offset)
        ((parent-is "group") parent-bol ,offset)
 
+       ;; don't indent raw block
+       ((and no-node ,(typst-ts-mode--ancestor-in (list "raw_blck")))
+        no-indent 0)
+
        ((and no-node
              ,(typst-ts-mode--ancestor-in typst-ts-mode--bracket-node-types))
         ,(typst-ts-mode--ancestor-bol typst-ts-mode--bracket-node-types)

Reply via email to