lib/faml/compiler.rb in faml-0.4.0 vs lib/faml/compiler.rb in faml-0.4.1
- old
+ new
@@ -395,10 +395,10 @@
temple << [:escape, ast.escape_html, [:dynamic, "#{sym}.to_s"]]
end
temple
end
- SKIP_END_KEYWORDS = %w[elsif else when].freeze
+ SKIP_END_KEYWORDS = %w[elsif else when rescue ensure].freeze
def compile_silent_script(ast)
temple = [:multi]
if SKIP_END_KEYWORDS.include?(ast.keyword)
temple << [:rmend]