bugfixes: tests are green again
This commit is contained in:
parent
9460f7cc4e
commit
4cfc0462a4
2 changed files with 3 additions and 2 deletions
|
|
@ -1372,7 +1372,8 @@ proc parseStmt(p: var TParser): PNode =
|
|||
else:
|
||||
var a = complexOrSimpleStmt(p)
|
||||
if a.kind == nkEmpty:
|
||||
parMessage(p, errInvalidIndentation)
|
||||
# XXX this needs a proper analysis;
|
||||
if isKeyword(p.tok.tokType): parMessage(p, errInvalidIndentation)
|
||||
break
|
||||
addSon(result, a)
|
||||
popInd(p.lex)
|
||||
|
|
|
|||
|
|
@ -677,7 +677,7 @@ proc replace*(s: string, sub, by: char): string {.noSideEffect,
|
|||
inc(i)
|
||||
|
||||
proc replaceWord*(s, sub: string, by = ""): string {.noSideEffect,
|
||||
rtl, extern: "nsuReplaceStr".} =
|
||||
rtl, extern: "nsuReplaceWord".} =
|
||||
## Replaces `sub` in `s` by the string `by`. Each occurance of `sub`
|
||||
## has to be surrounded by word boundaries (comparable to ``\\w`` in
|
||||
## regular expressions), otherwise it is not replaced.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue