Allow full commands and blocks in type sections (#19181)
* allow full commands and blocks in type sections * update grammar * fix changelog [skip ci] * more tests * even more tests
This commit is contained in:
parent
ef634cc251
commit
61d682e733
8 changed files with 393 additions and 11 deletions
11
tests/parser/ttypecommandindent2.nim
Normal file
11
tests/parser/ttypecommandindent2.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
errormsg: "invalid indentation"
|
||||
line: 10
|
||||
column: 5
|
||||
"""
|
||||
|
||||
type
|
||||
Foo = call x, y, z:
|
||||
abc
|
||||
do:
|
||||
def
|
||||
Loading…
Add table
Add a link
Reference in a new issue