]> git.eshelyaron.com Git - emacs.git/commit
java-ts-mode: detect if text_block is supported.
authorVincenzo Pupillo <v.pupillo@gmail.com>
Mon, 6 Mar 2023 11:24:34 +0000 (12:24 +0100)
committerEli Zaretskii <eliz@gnu.org>
Thu, 9 Mar 2023 10:22:49 +0000 (12:22 +0200)
commit255eeee0e06abd5c395b136867e6a9a440916eea
treedcaeb415aeb26ab87f3718598003e61caf4bc06a
parent6fe9075ff3814ce825c9869c901903edad9d0b44
java-ts-mode: detect if text_block is supported.

A recent commit in tree-sitter-java (issue #141) removed support for
the text_block node type from the grammar. To support the old released
version and the new one, a helper function was added on which the
string syntax highlighting now depends. (bug#61913)

* lisp/progmodes/java-ts-mode.el
(java-ts-mode--string-highlight-helper): New helper function that
return the right query string
(java-ts-mode--font-lock-settings): Use it

Copyright-paperwork-exempt: yes
lisp/progmodes/java-ts-mode.el