GNU bug report logs - #79363
31.0.50; Font locking issue in go-ts-mode when tree-sitter grammar is automatically installed

Previous Next

Package: emacs;

Reported by: Roi Martin <jroi.martin <at> gmail.com>

Date: Mon, 1 Sep 2025 21:33:02 UTC

Severity: normal

Found in version 31.0.50

Full log


Message #41 received at 79363 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Roi Martin <jroi.martin <at> gmail.com>
Cc: 79363 <at> debbugs.gnu.org
Subject: Re: bug#79363: 31.0.50; Font locking issue in go-ts-mode when
 tree-sitter grammar is automatically installed
Date: Sun, 07 Sep 2025 20:47:27 +0300
Thanks, now all 3 patches are pushed.

Are there other ts-modes that need the same fix?

I see that treesit-admin--generate-compatibility-report reports a warning for javascript:

  Warning (treesit-font-lock-rules-mismatch): Emacs cannot compile every
  font-lock rules because a mismatch between the grammar and the rules.
  This is most likely due to a mismatch between the font-lock rules
  defined by the major mode and the tree-sitter grammar.
  This error can be fixed by either downgrading the grammar
  (tree-sitter-javascript) on your system, or upgrading the major mode
  package.  The following are the temporarily disabled features:
  - `definition' for javascript.




This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.