From 467d708b13a31b07f7c11b40cdab64d0a133b89d Mon Sep 17 00:00:00 2001 From: jmgomez Date: Fri, 11 Oct 2024 12:19:30 +0100 Subject: [PATCH] Better task parsing --- routes.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes.nim b/routes.nim index c496188..d704089 100644 --- a/routes.nim +++ b/routes.nim @@ -775,7 +775,8 @@ proc tasks*( var name, desc: string for line in output.splitLines: if scanf(line, "$+ $*", name, desc): - result.add NimbleTask(name: name.strip(), description: desc.strip()) + if line.substr(name.len)[0 .. 1] == " " and line.substr(name.len + 2) == desc: + result.add NimbleTask(name: name.strip(), description: desc.strip()) #Notifications proc initialized*(ls: LanguageServer, _: JsonNode): Future[void] {.async.} =