We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b630e1b commit cb3c14bCopy full SHA for cb3c14b
packages/cursorless-engine/src/languages/TreeSitterQuery/validateQueryCaptures.ts
@@ -59,9 +59,9 @@ for (const captureName of captureNames) {
59
}
60
61
// Not a comment. ie line is not starting with `;;`
62
-// Not a string. ie line does not contain `@"`
+// Not a string.
63
// Capture starts with `@` and is followed by words and/or dots
64
-const capturePattern = new RegExp(`^(?!;;|.*@").*@([\\w.]*)`, "gm");
+const capturePattern = /^(?!;;).*(?<!"\w*)@([\w.]*)/gm;
65
66
export function validateQueryCaptures(file: string, rawQuery: string): void {
67
const matches = rawQuery.matchAll(capturePattern);
0 commit comments