Function: php-ts-mode--custom-html-font-lock-settings

php-ts-mode--custom-html-font-lock-settings is a byte-compiled function defined in php-ts-mode.el.gz.

Signature

(php-ts-mode--custom-html-font-lock-settings)

Documentation

Tree-sitter Font-lock settings for HTML when embedded in PHP.

Like mhtml-ts-mode--font-lock-settings but adapted for php-ts-mode.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/php-ts-mode.el.gz
;;; Font-lock helpers

(defun php-ts-mode--custom-html-font-lock-settings ()
  "Tree-sitter Font-lock settings for HTML when embedded in PHP.
Like `mhtml-ts-mode--font-lock-settings' but adapted for `php-ts-mode'."
  (treesit-replace-font-lock-feature-settings
   (treesit-font-lock-rules
    :language 'html
    :override t
    :feature 'comment
    '((comment) @font-lock-comment-face
      ;; handle shebang path and others type of comment
      (document (text) @font-lock-comment-face)))
   (mhtml-ts-mode--treesit-font-lock-settings)))