parent
ee0a470294
commit
42ac50e988
4 changed files with 12 additions and 1 deletions
|
|
@ -2393,6 +2393,10 @@ proc parseAll(p: var Parser): PNode =
|
|||
if p.tok.indent != 0:
|
||||
parMessage(p, errInvalidIndentation)
|
||||
|
||||
proc checkFirstLineIndentation*(p: var Parser) =
|
||||
if p.tok.indent != 0 and p.tok.strongSpaceA > 0:
|
||||
parMessage(p, errInvalidIndentation)
|
||||
|
||||
proc parseTopLevelStmt(p: var Parser): PNode =
|
||||
## Implements an iterator which, when called repeatedly, returns the next
|
||||
## top-level statement or emptyNode if end of stream.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue