File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2472,14 +2472,20 @@ before DELIM-OPEN."
2472
2472
" v0.24.3" ))
2473
2473
" Intended to be used as the value for `treesit-language-source-alist' ." )
2474
2474
2475
+ (defun clojure-ts--query-valid-p (query )
2476
+ " Return non-nil if QUERY is valid in Clojure, nil otherwise."
2477
+ (ignore-errors
2478
+ (treesit-query-compile 'clojure query t )
2479
+ t ))
2480
+
2475
2481
(defun clojure-ts--clojure-grammar-outdated-p ()
2476
2482
" Return TRUE if currently installed grammar is outdated.
2477
2483
2478
2484
This function checks if `clojure-ts-mode' is compatible with the
2479
2485
currently installed grammar. The simplest way to do this is to validate
2480
2486
a query that is valid in a previous grammar version but invalid in the
2481
2487
required version."
2482
- (treesit- query-valid-p 'clojure '((sym_lit (meta_lit)))))
2488
+ (clojure-ts-- query-valid-p '((sym_lit (meta_lit)))))
2483
2489
2484
2490
(defun clojure-ts--ensure-grammars ()
2485
2491
" Install required language grammars if not already available."
You can’t perform that action at this time.
0 commit comments