Function: c-ts-mode--defun-skipper
c-ts-mode--defun-skipper is a byte-compiled function defined in
c-ts-mode.el.gz.
Signature
(c-ts-mode--defun-skipper)
Documentation
Custom defun skipper for c-ts-mode and friends.
Structs in C end with a semicolon, but the semicolon is not considered part of the struct node, so point would stop before the semicolon. This function skips the semicolon.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/c-ts-mode.el.gz
(defun c-ts-mode--defun-skipper ()
"Custom defun skipper for `c-ts-mode' and friends.
Structs in C end with a semicolon, but the semicolon is not
considered part of the struct node, so point would stop before
the semicolon. This function skips the semicolon."
(when (looking-at (rx (* (or " " "\t")) ";"))
(goto-char (match-end 0)))
(treesit-default-defun-skipper))