]> git.eshelyaron.com Git - emacs.git/commitdiff
Add sentence-nodes to dockerfile-ts-mode
authorTheodor Thornhill <theo@thornhill.no>
Mon, 16 Jan 2023 07:49:40 +0000 (08:49 +0100)
committerTheodor Thornhill <theo@thornhill.no>
Mon, 16 Jan 2023 13:14:31 +0000 (14:14 +0100)
* lisp/progmodes/dockerfile-ts-mode.el (dockerfile-ts-mode): Catch all
instructions.

lisp/progmodes/dockerfile-ts-mode.el

index 3f8766e6713f06af4afe0c2e549fa209416f15fc..1b91681f08574b350073f6fe986fcd6c958e7dcd 100644 (file)
@@ -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)