Function: eca-table--skip-code-span

eca-table--skip-code-span is a natively compiled function defined in eca-table.el.

Signature

(eca-table--skip-code-span)

Documentation

Skip the code span opened by the backtick run at point.

As in CommonMark, a run of N backticks is closed only by a run of exactly N backticks. Point moves past the closing run, or just past the opening run when no closing run exists, in which case the backticks are literal text.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-table.el
;; Table parsing and alignment -------------------------------------------

(defun eca-table--skip-code-span ()
  "Skip the code span opened by the backtick run at point.
As in CommonMark, a run of N backticks is closed only by a run of
exactly N backticks.  Point moves past the closing run, or just
past the opening run when no closing run exists, in which case the
backticks are literal text."
  (let* ((n (skip-chars-forward "`"))
         (delim (make-string n ?`))
         (close nil))
    (save-excursion
      (while (and (not close) (search-forward delim nil t))
        (unless (or (eq (char-before (match-beginning 0)) ?`)
                    (eq (char-after (match-end 0)) ?`))
          (setq close (match-end 0)))))
    (when close (goto-char close))))