Function: cider--treesit-static-font-lock-rules

cider--treesit-static-font-lock-rules is a byte-compiled function defined in cider-mode.el.

Signature

(cider--treesit-static-font-lock-rules)

Documentation

Return tree-sitter rules for CIDER's fixed reader-tag highlighting.

Highlights the #break, #dbg and #light debugging reader tags, the tree-sitter counterpart of cider--static-font-lock-keywords.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-mode.el
(defun cider--treesit-static-font-lock-rules ()
  "Return tree-sitter rules for CIDER's fixed reader-tag highlighting.
Highlights the `#break', `#dbg' and `#light' debugging reader tags, the
tree-sitter counterpart of `cider--static-font-lock-keywords'."
  (treesit-font-lock-rules
   :language 'clojure
   :feature cider--treesit-static-font-lock-feature
   :override t
   '(((tagged_or_ctor_lit
       marker: "#" @font-lock-warning-face
       tag: (sym_lit (sym_name) @font-lock-warning-face @cider--ts-reader-tag))
      (:match "\\`\\(?:break\\|dbg\\|light\\)\\'" @cider--ts-reader-tag)))))