; 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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user