lib/wlang/rulesets/imperative_ruleset.rb in wlang-0.8.5 vs lib/wlang/rulesets/imperative_ruleset.rb in wlang-0.9.1
- old
+ new
@@ -99,13 +99,13 @@
parsed, theend = parser.parse_block(block3)
parser.append_buffer(buffer, parsed, true)
end
# install arguments and parse block2, positioned at block3
- parser.context_push(merge_each_args(names, args))
- parsed, block3 = parser.parse_block(block2)
- parser.append_buffer(buffer, parsed, true)
- parser.context_pop
+ parser.branch_scope(merge_each_args(names, args)) {
+ parsed, block3 = parser.parse_block(block2)
+ parser.append_buffer(buffer, parsed, true)
+ }
first = false
end
# Empty array special case
unless block3
\ No newline at end of file