WIP: disallow 'nil' for strings and seqs
This commit is contained in:
parent
32afc1a562
commit
dae5450947
43 changed files with 207 additions and 173 deletions
|
|
@ -765,7 +765,7 @@ template fillMatches(s, caps, c) =
|
|||
if startIdx != -1:
|
||||
caps[k] = substr(s, startIdx, endIdx)
|
||||
else:
|
||||
caps[k] = nil
|
||||
caps[k] = ""
|
||||
|
||||
proc matchLen*(s: string, pattern: Peg, matches: var openArray[string],
|
||||
start = 0): int {.nosideEffect, rtl, extern: "npegs$1Capture".} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue