Function: dockerfile-ts-mode--line-continuation-anchor
dockerfile-ts-mode--line-continuation-anchor is a byte-compiled
function defined in dockerfile-ts-mode.el.gz.
Signature
(dockerfile-ts-mode--line-continuation-anchor _ _ &rest _)
Documentation
This anchor is used to align any nodes that are part of a line continuation to the previous entry.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/dockerfile-ts-mode.el.gz
(defun dockerfile-ts-mode--line-continuation-anchor (_ _ &rest _)
"This anchor is used to align any nodes that are part of a line
continuation to the previous entry."
(save-excursion
(forward-line -1)
(let ((prev-node (treesit-node-at (point))))
(if (string= (treesit-node-type prev-node) "\\\n")
(back-to-indentation)
(forward-word)
(forward-char))
(+ 1 (- (point) (pos-bol))))))