lib/hamlit/parsers/script.rb in hamlit-1.6.6 vs lib/hamlit/parsers/script.rb in hamlit-1.6.7
- old
+ new
@@ -80,10 +80,10 @@
result = ''
with_comment = false
prefix = find_prefix(code)
code = "#{prefix}#{code}"
- Ripper.lex(code).each do |(row, col), type, str|
+ Ripper.lex(code).each do |_, type, str|
if type == :on_comment
with_comment = true
next
end
result += str