lib/nilac/compile_named_functions.rb in nilac-0.0.4.3.9.4 vs lib/nilac/compile_named_functions.rb in nilac-0.0.4.3.9.5
- old
+ new
@@ -172,10 +172,10 @@
rejected_array = rejected_array.reject {|content| content.strip.eql?("")}
rejected_array = rejected_array[1..-1]
- if !rejected_array[0].strip.eql?("}")
+ unless rejected_array[0].strip.eql?("}") or rejected_array[0].strip.eql?("})")
if !rejected_array[0].strip.eql?("end") and !rejected_array[0].strip.include?("--single_line_comment")
last_statement = rejected_array[0]
\ No newline at end of file