Function: cmake--syntax-propertize-until-bracket-close
cmake--syntax-propertize-until-bracket-close is a natively compiled
function defined in cmake-mode.el.
Signature
(cmake--syntax-propertize-until-bracket-close SYNTAX END)
Source Code
;; Defined in /nix/store/xpmgnbrvz0j5ic5m3q6fvh28ca8a9avm-emacs-packages-deps/share/emacs/site-lisp/elpa/cmake-mode-20261002.1529/cmake-mode.el
;------------------------------------------------------------------------------
(defun cmake--syntax-propertize-until-bracket-close (syntax end)
;; This function assumes that a previous search has matched the
;; beginning of a bracket_comment or bracket_argument and that the
;; second capture group has matched the equal signs between the two
;; opening brackets
(let* ((mb (match-beginning 2))
(me (match-end 2))
(cb (format "]%s]" (buffer-substring mb me))))
(save-match-data
(if (search-forward cb end 'move)
(progn
(setq me (match-end 0))
(put-text-property
(1- me)
me
'syntax-table
(string-to-syntax syntax)))
(setq me end)))
(put-text-property
(match-beginning 1)
me
'syntax-multiline
t)))