Function: combobulate-highlight-install-query

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

Signature

(combobulate-highlight-install-query QUERY LANGUAGE &optional QUIET)

Documentation

Highlight the QUERY in LANGUAGE in the current buffer.

If QUIET is non-nil, then do not display any warning messages if the query fails to compile.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-query.el
(defun combobulate-highlight-install-query (query language &optional quiet)
  "Highlight the QUERY in LANGUAGE in the current buffer.

If QUIET is non-nil, then do not display any warning messages if
the query fails to compile."
  (if-let (err (combobulate-query-builder-validate-query query))
      (progn (unless quiet (warn "Query %s failed to compile: %s." query err)) nil)
    (setq treesit-font-lock-settings
          (append treesit-font-lock-settings
                  (treesit-font-lock-rules
                   :language language
                   :override t
                   :feature combobulate-highlight-feature-symbol
                   query)))
    ;; required for the font lock machinery to take effect.
    (treesit-font-lock-recompute-features)
    (font-lock-flush)
    query))