Skip to content

Commit 92b6e67

Browse files
Added comment
1 parent 1db4be3 commit 92b6e67

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/cursorless-engine/src/languages/TreeSitterQuery/queryPredicateOperators.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@ class ShrinkToMatch extends QueryPredicateOperator<ShrinkToMatch> {
157157
}
158158
}
159159

160+
/**
161+
* A predicate operator that modifies the range of the match to grow to named trailing siblings.
162+
*
163+
* An optional `notText` argument can be provided to break at siblings that match the given text.
164+
*
165+
* ```
166+
* (#grow-to-named-siblings! @foo "at")
167+
* ```
168+
*/
160169
class GrowToNamedSiblings extends QueryPredicateOperator<GrowToNamedSiblings> {
161170
name = "grow-to-named-siblings!" as const;
162171
schema = z.union([z.tuple([q.node]), z.tuple([q.node, q.string])]);

0 commit comments

Comments
 (0)