--- Begin Message ---
Subject: |
java-ts-mode query error for string highlight, due to recent commit in tree-sitter-java. |
Date: |
Thu, 02 Mar 2023 13:21:05 +0100 |
Hi,
a recent commit in tree-sitter-java
(https://github.com/tree-sitter/tree-sitter-java/commit/2b3b776b953a34ccffb647dd89732db79690d4c5)
removed "text_block" from grammar.js. This causes a bug in java-ts-mode when
treesit-fon-lock-level is > 1
Error during redeployment: (jit-lock-function 8295) reported
(treesit-query-error "Node type error at" 42 "(string_literal)
@font-lock-string-face (text_block) @font-lock-string-face" "Debugging the
query with `treesit-query-validate'")
The attached patch fixes the problem.
Thank you very much.
Vincenzo
java_ts_mode_string_highlight.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#61913: java-ts-mode query error for string highlight, due to recent commit in tree-sitter-java. |
Date: |
Thu, 09 Mar 2023 12:24:55 +0200 |
> From: Vincenzo Pupillo <v.pupillo@gmail.com>
> Cc: casouri@gmail.com, 61913@debbugs.gnu.org
> Date: Mon, 06 Mar 2023 15:03:46 +0100
>
> Is this patch okay? Please feel free to make any changes you see fit.
Thanks, installed on the emacs-29 branch.
Btw, this patch all but exhausts the amount of changes we can accept
from you without a copyright assignment. Would you like to start you
legal paperwork of assigning the copyright to the FSF? If yes, I will
send you the form to fill.
--- End Message ---