Function: markdown-ts--table-compute-node-column

markdown-ts--table-compute-node-column is a byte-compiled function defined in markdown-ts-mode.el.gz.

Signature

(markdown-ts--table-compute-node-column ROW NODE)

Documentation

Compute NODE's column in ROW.

Return nil if NODE is not in ROW (this should not happen). NODE must be a node in ROW. ROW must be a pipe_table_header, pipe_table_delimiter_row, or pipe_table_row.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--table-compute-node-column (row node)
  "Compute NODE's column in ROW.
Return nil if NODE is not in ROW (this should not happen).
NODE must be a node in ROW.
ROW must be a pipe_table_header, pipe_table_delimiter_row, or
pipe_table_row."
  (catch :column
    (let ((count 0))
      (dolist (cell (treesit-node-children row 'named))
        (when (treesit-node-eq node cell)
          (throw :column count))
        (setq count (1+ count))))))