fix deprecation warnings in asyncmacro and htmlgen (#7573)

* fix deprecation warnings in asyncmacro and htmlgen

* removed todo
This commit is contained in:
Arne Döring 2018-04-12 13:54:49 +02:00 • committed by Andreas Rumpf
commit 84982e5e17
2 changed files with 22 additions and 21 deletions

View file

@ -38,7 +38,8 @@ const
proc getIdent(e: NimNode): string {.compileTime.} =
case e.kind
of nnkIdent: result = normalize($e.ident)
of nnkIdent:
result = e.strVal.normalize
of nnkAccQuoted:
result = getIdent(e[0])
for i in 1 .. e.len-1: