Function: java-ts-mode--string-highlight-helper

java-ts-mode--string-highlight-helper is a byte-compiled function defined in java-ts-mode.el.gz.

Signature

(java-ts-mode--string-highlight-helper)

Documentation

Return, for strings, a query based on what is supported by the available version of Tree-sitter for Java.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/java-ts-mode.el.gz
(defun java-ts-mode--string-highlight-helper ()
  "Return, for strings, a query based on what is supported by
the available version of Tree-sitter for Java."
  (condition-case nil
      (progn (treesit-query-capture 'java '((text_block) @font-lock-string-face))
	     `((string_literal) @font-lock-string-face
	       (text_block) @font-lock-string-face))
    (error
     `((string_literal) @font-lock-string-face))))