Skip to content

Commit

Permalink
Better task parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez committed Oct 11, 2024
1 parent 5fef14d commit 467d708
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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.} =
Expand Down

0 comments on commit 467d708

Please sign in to comment.