MCPcopy Index your code
hub / github.com/cursorless-dev/cursorless / trailingMatcher

Function trailingMatcher

src/util/nodeMatchers.ts:126–134  ·  view source on GitHub ↗
(
  patterns: string[],
  delimiters: string[] = []
)

Source from the content-addressed store, hash-verified

124 * @returns A node matcher
125 */
126export function trailingMatcher(
127 patterns: string[],
128 delimiters: string[] = []
129): NodeMatcher {
130 return matcher(
131 patternFinder(...patterns),
132 selectWithTrailingDelimiter(...delimiters)
133 );
134}
135
136/**
137 * Create a new matcher that will try the given matchers in sequence until one

Callers 6

java.tsFile · 0.90
typescript.tsFile · 0.90
cpp.tsFile · 0.90
json.tsFile · 0.90
csharp.tsFile · 0.90
python.tsFile · 0.90

Calls 3

patternFinderFunction · 0.90
matcherFunction · 0.85

Tested by

no test coverage detected