all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#60453: 29.0.60; treesit-range-rules throw an error without tree-sitter
@ 2022-12-31 14:53 Wilhelm Kirschbaum
  2022-12-31 16:37 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Wilhelm Kirschbaum @ 2022-12-31 14:53 UTC (permalink / raw)
  To: 60453


With the following code without tree-sitter library:

(defvar elixir-ts-mode--treesit-range-rules
  (treesit-range-rules
   :embed 'heex
   :host 'elixir
   '((sigil (sigil_name) @name (:match "^[H]$" @name) 
   (quoted_content)
  @heex))))

upon loading the mode I get the following error:

treesit-range-rules: Symbol’s function definition is void:
treesit-query-compile

This can easily be mitigated with (when (treesit-available-p)...) 
but
think it should function similar to how (treesit-font-lock-rules 
work.

Wilhelm





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-01-17  9:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-31 14:53 bug#60453: 29.0.60; treesit-range-rules throw an error without tree-sitter Wilhelm Kirschbaum
2022-12-31 16:37 ` Eli Zaretskii
2022-12-31 16:50   ` Wilhelm Kirschbaum
2022-12-31 17:05     ` Eli Zaretskii
2022-12-31 17:08       ` Wilhelm Kirschbaum
2023-01-02  0:19 ` Yuan Fu
2023-01-17  9:41 ` Yuan Fu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.