Function: cmake-ts-mode--font-lock-compatibility-fe9b5e0
cmake-ts-mode--font-lock-compatibility-fe9b5e0 is a byte-compiled
function defined in cmake-ts-mode.el.gz.
Signature
(cmake-ts-mode--font-lock-compatibility-fe9b5e0)
Documentation
Font lock helper, to handle different releases of tree-sitter-cmake.
Check if a node type is available, then return the right font lock rules.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cmake-ts-mode.el.gz
(defun cmake-ts-mode--font-lock-compatibility-fe9b5e0 ()
"Font lock helper, to handle different releases of tree-sitter-cmake.
Check if a node type is available, then return the right font lock rules."
;; handle commit fe9b5e0
(condition-case nil
(progn (treesit-query-capture 'cmake '((argument_list) @capture))
`(((foreach_command
((argument_list) @font-lock-constant-face
(:match ,(rx-to-string
`(seq bol
(or ,@cmake-ts-mode--foreach-options)
eol))
@font-lock-constant-face))))
((if_command
((argument_list) @font-lock-constant-face
(:match ,(rx-to-string
`(seq bol
(or ,@cmake-ts-mode--if-conditions)
eol))
@font-lock-constant-face))))))
(error
`(((foreach_command
((argument) @font-lock-constant-face
(:match ,(rx-to-string
`(seq bol
(or ,@cmake-ts-mode--foreach-options)
eol))
@font-lock-constant-face))))
((if_command
((argument) @font-lock-constant-face
(:match ,(rx-to-string
`(seq bol
(or ,@cmake-ts-mode--if-conditions)
eol))
@font-lock-constant-face))))))))