@@ -4,15 +4,14 @@ use helix_stdx::rope::RopeSliceExt;
44use tree_house:: TREE_SITTER_MATCH_LIMIT ;
55
66use crate :: {
7+ Position , Rope , RopeSlice , Syntax , Tendril ,
78 chars:: { char_is_line_ending, char_is_whitespace} ,
89 graphemes:: { grapheme_width, tab_width_at} ,
910 syntax:: { self , config:: IndentationHeuristic } ,
1011 tree_sitter:: {
11- self ,
12+ self , Capture , Grammar , InactiveQueryCursor , Node , Pattern , Query , QueryMatch , RopeInput ,
1213 query:: { InvalidPredicateError , UserPredicate } ,
13- Capture , Grammar , InactiveQueryCursor , Node , Pattern , Query , QueryMatch , RopeInput ,
1414 } ,
15- Position , Rope , RopeSlice , Syntax , Tendril ,
1615} ;
1716
1817/// Enum representing indentation style.
@@ -384,7 +383,7 @@ impl IndentQuery {
384383 Some ( "all" ) => IndentScope :: All ,
385384 Some ( "tail" ) => IndentScope :: Tail ,
386385 Some ( other) => {
387- return Err ( format ! ( "unknown scope (#set! scope \" {other}\" )" ) . into ( ) )
386+ return Err ( format ! ( "unknown scope (#set! scope \" {other}\" )" ) . into ( ) ) ;
388387 }
389388 None => return Err ( "missing scope value (#set! scope ...)" . into ( ) ) ,
390389 } ;
@@ -675,7 +674,9 @@ fn query_indents<'a>(
675674 IndentCaptureType :: Align ( RopeSlice :: from ( "" ) )
676675 } else if capture == query. anchor_capture {
677676 if anchor. is_some ( ) {
678- log:: error!( "Invalid indent query: Encountered more than one @anchor in the same match." )
677+ log:: error!(
678+ "Invalid indent query: Encountered more than one @anchor in the same match."
679+ )
679680 } else {
680681 anchor = Some ( & matched_node. node ) ;
681682 }
0 commit comments