branch: elpa/typst-ts-mode commit 709e77733e34fa55a0a8c21a2e6ed9a2fb6934ec Author: meowking <mr.meowk...@tutamail.com> Commit: meowking <mr.meowk...@tutamail.com>
fix+chore: indentation rules for item --- typst-ts-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/typst-ts-mode.el b/typst-ts-mode.el index 59864218a0..ea4777f927 100644 --- a/typst-ts-mode.el +++ b/typst-ts-mode.el @@ -470,6 +470,8 @@ NODE, PARENT and BOL see `treesit-simple-indent-rules'." ;; item - new item content should follow its previous line's indentation ;; level + ;; e.g. + ;; - hi | <- return (newline command) ((and no-node typst-ts-mode--indentation-prev-line-is-item-p ;; not in container @@ -478,7 +480,7 @@ NODE, PARENT and BOL see `treesit-simple-indent-rules'." ;; hi #[ ;; - hello | <- return ;; ] - (not (n-p-gp nil "parbreak" "code"))) + (not (n-p-gp nil "parbreak" ,typst-ts-mode--container-node-types-regexp))) typst-ts-mode--indentation-multiline-item-get-anchor_ 0) ;; raw block