lib/i18n/tasks/scanners/erb_ast_processor.rb in i18n-tasks-1.0.1 vs lib/i18n/tasks/scanners/erb_ast_processor.rb in i18n-tasks-1.0.2
- old
+ new
@@ -7,10 +7,10 @@
module I18n::Tasks::Scanners
class ErbAstProcessor
include AST::Processor::Mixin
def initialize
super()
- @ruby_parser = LocalRubyParser.new
+ @ruby_parser = LocalRubyParser.new(ignore_blocks: true)
@comments = []
end
def process_and_extract_comments(ast)
result = process(ast)