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

Returns, 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 ()
"Returns, 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))))