From 553358e481c4a81112d2ff84ae089ecfbfa20e12 Mon Sep 17 00:00:00 2001 From: Vincenzo Pupillo Date: Mon, 10 Apr 2023 15:49:32 +0200 Subject: [PATCH] Fixed the html-ts-mode indentation rule. The indentation rule ((parent-is "fragment") point-min 0) in html-ts-mode causes an error if trying to indent nodes that have 'fragment' as parent. * lisp/textmodes/html-ts-mode.el (html-ts-mode--indent-rules): use parent-bol instead of point-min --- lisp/textmodes/html-ts-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/html-ts-mode.el b/lisp/textmodes/html-ts-mode.el index 58dcc7d8cad..a58e3665ff8 100644 --- a/lisp/textmodes/html-ts-mode.el +++ b/lisp/textmodes/html-ts-mode.el @@ -42,7 +42,7 @@ html-ts-mode-indent-offset (defvar html-ts-mode--indent-rules `((html - ((parent-is "fragment") point-min 0) + ((parent-is "fragment") parent-bol 0) ((node-is "/>") parent-bol 0) ((node-is ">") parent-bol 0) ((node-is "end_tag") parent-bol 0) -- 2.39.2