all repos — hastyscribe @ 8ac9afc750354133311c4020209f8c377187e073

A professional markdown compiler.

Added gcsafe pragmas.
h3rald h3rald@h3rald.com
Thu, 31 Dec 2020 13:58:37 +0000
commit

8ac9afc750354133311c4020209f8c377187e073

parent

9650e8c032ce343ce6089384efbcd865277841e4

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/hastyscribe.nimsrc/hastyscribe.nim

@@ -62,7 +62,7 @@

if logging.getHandlers().len == 0: newNiftyLogger().addHandler() -proc initFields(fields: HastyFields): HastyFields = +proc initFields(fields: HastyFields): HastyFields {.gcsafe.} = result = initTable[string, proc():string]() for key, value in fields.pairs: result[key] = value

@@ -270,7 +270,7 @@ result = result.replace(instance, "")

# Field Usage: # {{$timestamp}} -proc parse_fields(hs: var HastyScribe, document: string): string = +proc parse_fields(hs: var HastyScribe, document: string): string {.gcsafe.} = let peg_field = peg""" field <- '{{' \s* '$' {id} \s* '}}' id <- [a-zA-Z0-9_-]+