diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-01-17 21:18:42 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-01-17 21:18:42 +0100 |
| commit | aeaf52d14fe7b00dada7d3bec7096fee0b17b7d7 (patch) | |
| tree | b61427f196cd80387747ee823496d4d4fc69e7b0 /editors/vscode/src | |
| parent | 07b4139425d9f135db9cc9f391f75a5d52ae6d62 (diff) | |
make the parens optional in @test
Diffstat (limited to 'editors/vscode/src')
| -rw-r--r-- | editors/vscode/src/run.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vscode/src/run.ts b/editors/vscode/src/run.ts index c00b27b..3b443bc 100644 --- a/editors/vscode/src/run.ts +++ b/editors/vscode/src/run.ts @@ -51,7 +51,7 @@ export class RunnableCodeLensProvider implements CodeLensProvider { private testMethodLenses(doc: TextDocument) { const text = doc.getText(); - const reTest = /\@\(test\)/g; + const reTest = /\@\(?test\)?/g; const reFnTest = /\s*\w+\s*::\s*proc\s*\s*\(/g; var testMatch: RegExpExecArray | null = null; |