unit separator (#17730)

* use the ASCII Unit Separator so that error messages can be handled precisely by the tooling
* updated testament
This commit is contained in:
Andreas Rumpf 2021-04-20 16:30:17 +02:00 • committed by GitHub
commit 0b116310bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 55 additions and 39 deletions

View file

@ -202,7 +202,7 @@ proc extractSpec(filename: string; spec: var TSpec): string =
# look for """ only in the first section
if a >= 0 and b > a and a < 40:
result = s.substr(a+3, b-1).replace("'''", tripleQuote)
result = s.substr(a+3, b-1).multiReplace({"'''": tripleQuote, "\\31": "\31"})
else:
#echo "warning: file does not contain spec: " & filename
result = ""