nushell-ts-mode icon indicating copy to clipboard operation
nushell-ts-mode copied to clipboard

Error with up-to-date grammar

Open fredericgiquel opened this issue 1 month ago • 0 comments

When I use up-to-date tree-sitter-nu grammar, I got the follow error:

(jit-lock-function 1) signaled (treesit-query-error "Node type error at" 29 "[\"alias\" \"def\" \"let\" \"mut\" \"source\"] @font-lock-keyword-face" "Debug the query with `treesit-query-validate'")

The problem seems related to the source keyword. If I remove this keyword from nushell-ts-mode--keywords list, the error disappears.

fredericgiquel avatar Oct 19 '25 08:10 fredericgiquel