1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-11 01:11:31 -07:00

; Avoid byte-compilation warning in c-ts-common.el

* lisp/progmodes/c-ts-common.el (c-ts-common-comment-start-skip):
Move up to avoid byte-compiler warning.
This commit is contained in:
Eli Zaretskii 2026-02-26 14:15:21 +02:00
parent c7595cbc02
commit 29fc964207

View file

@ -54,6 +54,12 @@
;;; Comment indentation and filling
(defvar c-ts-common-comment-start-skip
(rx (or (seq "/" (+ "/"))
(seq "/" (+ "*")))
(* (syntax whitespace)))
"The `comment-start-skip' used by `c-ts-common-comment-setup'.")
(defun c-ts-common-looking-at-star (_n _p bol &rest _)
"A tree-sitter simple indent matcher.
Matches if there is a \"*\" after BOL."
@ -274,12 +280,6 @@ This function should be called at BOL. Used by
;; `adaptive-fill-first-line-regexp' decide.
(t nil)))
(defvar c-ts-common-comment-start-skip
(rx (or (seq "/" (+ "/"))
(seq "/" (+ "*")))
(* (syntax whitespace)))
"The `comment-start-skip' used by `c-ts-common-comment-setup'.")
(defun c-ts-common-comment-setup ()
"Set up local variables for C-like comment.