File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed 
packages/cursorless-engine/src/languages/TreeSitterQuery Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ for (const captureName of captureNames) {
6060
6161// Not a comment. ie line is not starting with `;;` 
6262// Capture starts with `@` and is followed by words and/or dots 
63- const  capturePattern  =  new  RegExp ( `^(?!;;).*@([\\w.]* )` ,  "gm" ) ; 
63+ const  capturePattern  =  new  RegExp ( `^(?!;;).*@([\\w.]+ )` ,  "gm" ) ; 
6464
6565export  function  validateQueryCaptures ( file : string ,  rawQuery : string ) : void   { 
6666  const  matches  =  rawQuery . matchAll ( capturePattern ) ; 
Original file line number Diff line number Diff line change 437437  (_) @value 
438438) @_.domain 
439439
440- ;;  Disabled due to Cursorless error ("invalid capture") caused by "return@"
441- ;;  (jump_expression
442- ;;    "return@"
443- ;;    .
444- ;;    (label)
445- ;;    .
446- ;;    (_) @value
447- ;;  ) @_.domain
440+ (jump_expression
441+   "return@"
442+   .
443+   (label)
444+   .
445+   (_) @value 
446+ ) @_.domain 
448447
449448(_
450449  (function_body
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments