File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4337,7 +4337,7 @@ fn expand_replacer(
43374337 ) )
43384338}
43394339
4340- // Extract all the token ranges in \p str, along with whether they are an undecorated command.
4340+ // Extract all the token ranges in \p str, along with whether they are a command.
43414341// Tokens containing command substitutions are skipped; this ensures tokens are non-overlapping.
43424342struct PositionedToken {
43434343 range : SourceRange ,
@@ -4350,7 +4350,7 @@ fn extract_tokens(s: &wstr) -> Vec<PositionedToken> {
43504350 | ParseTreeFlags :: LEAVE_UNTERMINATED ;
43514351 let ast = Ast :: parse ( s, ast_flags, None ) ;
43524352
4353- // Helper to check if a node is the command portion of an undecorated statement.
4353+ // Helper to check if a node is the command portion of a decorated statement.
43544354 let is_command = |node : & dyn ast:: Node | {
43554355 let mut cursor = Some ( node) ;
43564356 while let Some ( cur) = cursor {
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ fn test_abbreviations() {
131131 // Others should not be.
132132 validate ! ( "of gc" , None ) ;
133133
134- // Others should not be.
134+ // Other decorations generally should be.
135135 validate ! ( "command gc" , None , "command git checkout" ) ;
136136
137137 // yin/yang expands everywhere.
You can’t perform that action at this time.
0 commit comments