mirror of
https://github.com/irmen/prog8.git
synced 2024-12-27 05:29:38 +00:00
allow %breakpoint also in if/else blocks and other anonymous scopes
This commit is contained in:
parent
c38765301e
commit
592becc126
@ -825,7 +825,7 @@ internal class AstChecker(private val program: Program,
|
||||
err("invalid import directive, cannot import itself")
|
||||
}
|
||||
"%breakpoint" -> {
|
||||
if(directive.parent !is INameScope || directive.parent is Module)
|
||||
if(directive.parent !is INameScope && directive.parent !is AnonymousScope || directive.parent is Module)
|
||||
err("this directive can't be used here")
|
||||
if(directive.args.isNotEmpty())
|
||||
err("invalid breakpoint directive, expected no arguments")
|
||||
|
Loading…
Reference in New Issue
Block a user