X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=blobdiff_plain;f=csrc%2Foceani.mdc;h=2a40ff203efa442fa148610521cb016070c13974;hp=364ee290ab54ca10d0e825d9d128edd5b15ea0b2;hb=6a546ea265d0ee30152298463e9e7b7c2f53b3b0;hpb=688a9e05b01cd47b1a583848ade627d3f29b52d1 diff --git a/csrc/oceani.mdc b/csrc/oceani.mdc index 364ee29..2a40ff2 100644 --- a/csrc/oceani.mdc +++ b/csrc/oceani.mdc @@ -3873,12 +3873,14 @@ defined. $0->condpart = $next = $0->casepart; $0->casepart = $condpart = $next = $0->casepart; $0->casepart = $ IfSuffix ${ $0 = $<1; - // This is where we close scope of the whole - // "for" or "while" statement - var_block_close(c, CloseSequential); }$ | Newlines CasePart CondSuffix ${ $0 = $ for OpenBlock ${ $0 = $ while UseBlock OptNL do Block ${ $0.condpart = $ if UseBlock OptNL then OpenBlock ClosePara ${ @@ -3964,7 +3965,7 @@ defined. }$ $*exec - // This scope is closed in CondSuffix + // This scope is closed in CondStatement SwitchPart -> switch OpenScope Expression ${ $0 = $