Skip to content

Commit 74de948

Browse files
committed
Inline treesit-query-p to ensure compatibility with Emacs 30
1 parent 2dd7ed2 commit 74de948

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clojure-ts-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2479,7 +2479,9 @@ This function checks if `clojure-ts-mode' is compatible with the
24792479
currently installed grammar. The simplest way to do this is to validate
24802480
a query that is valid in a previous grammar version but invalid in the
24812481
required version."
2482-
(treesit-query-valid-p 'clojure '((sym_lit (meta_lit)))))
2482+
(ignore-errors
2483+
(treesit-query-compile 'clojure '((sym_lit (meta_lit))) t)
2484+
t))
24832485

24842486
(defun clojure-ts--ensure-grammars ()
24852487
"Install required language grammars if not already available."

0 commit comments

Comments
 (0)