aboutsummaryrefslogtreecommitdiff
path: root/editors/vscode/src
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-01-17 21:18:42 +0100
committerDaniel Gavin <danielgavin5@hotmail.com>2022-01-17 21:18:42 +0100
commitaeaf52d14fe7b00dada7d3bec7096fee0b17b7d7 (patch)
treeb61427f196cd80387747ee823496d4d4fc69e7b0 /editors/vscode/src
parent07b4139425d9f135db9cc9f391f75a5d52ae6d62 (diff)
make the parens optional in @test
Diffstat (limited to 'editors/vscode/src')
-rw-r--r--editors/vscode/src/run.ts2
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;