mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 18:30:40 -07:00
added interrupt class for continue/break statements
When a continue or break statement is executed it pushes an interrupt to a stack in context. If any non-handled interrupts are present blocks will cease to execute. The for loop can handle the most recent interrupt in the stack.
This commit is contained in:
@@ -8,9 +8,4 @@ module Liquid
|
||||
class StandardError < Error; end
|
||||
class SyntaxError < Error; end
|
||||
class StackLevelError < Error; end
|
||||
|
||||
|
||||
class Interrupt < Error; end
|
||||
class BreakInterrupt < Interrupt; end
|
||||
class ContinueInterrupt < Interrupt; end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user