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."
24722472           " v0.24.3" 
24732473  " Intended to be used as the value for `treesit-language-source-alist' ." 
24742474
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+ 
24752481(defun  clojure-ts--clojure-grammar-outdated-p  ()
24762482  " Return TRUE if currently installed grammar is outdated.
24772483
24782484This function checks if `clojure-ts-mode'  is compatible with the 
24792485currently installed grammar.  The simplest way to do this is to validate 
24802486a query that is valid in a previous grammar version but invalid in the 
24812487required version."  
2482-   (treesit- query-valid-p  'clojure  '((sym_lit (meta_lit)))))
2488+   (clojure-ts-- query-valid-p '((sym_lit (meta_lit)))))
24832489
24842490(defun  clojure-ts--ensure-grammars  ()
24852491  " Install required language grammars if not already available." 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments