slurp uses path; unidecode is improved and threadsafe
This commit is contained in:
parent
fae8ea0cee
commit
e956abbadd
9 changed files with 76 additions and 48 deletions
|
|
@ -942,7 +942,7 @@ proc semSlurp(c: PContext, n: PNode, flags: TExprFlags): PNode =
|
|||
if sonsLen(n) == 2:
|
||||
var a = expectStringArg(c, n, 0)
|
||||
try:
|
||||
var content = readFile(a.strVal)
|
||||
var content = readFile(a.strVal.FindFile)
|
||||
result = newStrNode(nkStrLit, content)
|
||||
result.typ = getSysType(tyString)
|
||||
result.info = n.info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue