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:
parent
c776498170
commit
0b116310bf
8 changed files with 55 additions and 39 deletions
|
|
@ -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 = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue