Subject: bug#63086: 29.0.90; go-ts-mode treesit-query-error during jit-lock

From: Eli Zaretskii <[email-masked]>
Date: Wed, 26 Apr 2023 13:36:16 +0300

> From: Jimmy Yuen Ho Wong <[email-masked]>
> Date: Wed, 26 Apr 2023 11:00:14 +0100
> 
> 
> After visiting a go file and turning on M-x go-ts-mode, this following
> message appears in the *Messages* buffer and the go buffer is not
> highlighted as a result.
> 
> QuitError during redisplay: (jit-lock-function 1) signaled (treesit-query-error "Node type error at" 11 "[(false) (iota) (nil) (true)] @font-lock-constant-face (const_declaration (const_spec name: (identifier) @font-lock-constant-face))" "Debug the query with `treesit-query-validate'")
> Error during redisplay: (jit-lock-function 1) signaled (treesit-query-error "Node type error at" 11 "[(false) (iota) (nil) (true)] @font-lock-constant-face (const_declaration (const_spec name: (identifier) @font-lock-constant-face))" "Debug the query with `treesit-query-validate'")

Can you post a minimal file that triggers this?  Or are you saying
that any Go file will cause this?

Thanks.