From e84111a0017b953be363210a68ac0c05f3f864bb Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Mon, 16 Jan 2023 08:49:40 +0100 Subject: [PATCH] Add sentence-nodes to dockerfile-ts-mode * lisp/progmodes/dockerfile-ts-mode.el (dockerfile-ts-mode): Catch all instructions. --- lisp/progmodes/dockerfile-ts-mode.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/progmodes/dockerfile-ts-mode.el b/lisp/progmodes/dockerfile-ts-mode.el index 3f8766e6713..1b91681f085 100644 --- a/lisp/progmodes/dockerfile-ts-mode.el +++ b/lisp/progmodes/dockerfile-ts-mode.el @@ -161,6 +161,10 @@ the subtrees." (setq-local treesit-simple-indent-rules dockerfile-ts-mode--indent-rules) + ;; Navigation + (setq-local treesit-sentence-type-regexp + "instruction") + ;; Font-lock. (setq-local treesit-font-lock-settings dockerfile-ts-mode--font-lock-settings) -- 2.39.5