From: Theodor Thornhill Date: Mon, 16 Jan 2023 07:49:40 +0000 (+0100) Subject: Add sentence-nodes to dockerfile-ts-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e84111a0017b953be363210a68ac0c05f3f864bb;p=emacs.git Add sentence-nodes to dockerfile-ts-mode * lisp/progmodes/dockerfile-ts-mode.el (dockerfile-ts-mode): Catch all instructions. --- 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)