help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tree-sitter node type error when trying to set up font lock


From: Jeremy Baxter
Subject: Tree-sitter node type error when trying to set up font lock
Date: Fri, 03 May 2024 19:39:38 +1200

Hi list,

I'm working on a tree-sitter-based major mode for D, and after setting
up font lock I receive the following error in the *Messages* buffer:

    Error during redisplay: (jit-lock-function 3193) signaled 
(treesit-query-error
    "Node type error at" 3 "[\"alias\" \"class\" ...] @font-lock-keyword-face"
    "Debug the query with `treesit-query-validate'")

A minimal sample of the source is attached but this vector in the
error is replaced with the contents of `d-ts--keywords' spliced into a
vector. Calling `treesit-query-validate' doesn't tell me anything new
either. Does anyone know what I'm doing wrong?

Thanks,
 ~Jeremy

Attachment: d-ts-mode.el
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]