Function: combobulate-highlight-install

combobulate-highlight-install is a natively compiled function defined in combobulate-query.el.

Signature

(combobulate-highlight-install LANGUAGE)

Documentation

Install the font lock rules for LANGUAGE in the current buffer.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-query.el
(defun combobulate-highlight-install (language)
  "Install the font lock rules for LANGUAGE in the current buffer."
  (when (combobulate-read minor-mode)
    (combobulate-highlight-setup)
    ;; do the user-defined rules...
    (dolist (rule combobulate-highlight-queries-alist)
      (when (eq language (plist-get rule :language))
        (combobulate-highlight-install-query
         (combobulate-query-builder-expand-match-face
          (combobulate-query-builder-to-string (plist-get rule :query)))
         language t)))
    ;; next, the system-supplied rules...
    (dolist (rule (combobulate-read highlight-queries-default))
      (combobulate-highlight-install-query
       (combobulate-query-builder-expand-match-face
        (combobulate-query-builder-to-string rule))
       language t))))