Skip to content

Commit

Permalink
skip comments in .coffee files
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Feb 13, 2015
1 parent ec5f0c1 commit f6ad75b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/i18n/tasks/scanners/base_scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ def initialize(config = {})
conf[:ignore_lines] = nil
end
conf[:ignore_lines] ||= {
'rb' => %q(^\s*#(?!\si18n-tasks-use)),
'haml' => %q(^\s*-\s*#(?!\si18n-tasks-use)),
'slim' => %q(^\s*(?:-#|/)(?!\si18n-tasks-use)),
'erb' => %q(^\s*<%\s*#(?!\si18n-tasks-use)),
'rb' => %q(^\s*#(?!\si18n-tasks-use)),
'haml' => %q(^\s*-\s*#(?!\si18n-tasks-use)),
'slim' => %q(^\s*(?:-#|/)(?!\si18n-tasks-use)),
'coffee' => %q(^\s*#(?!\si18n-tasks-use)),
'erb' => %q(^\s*<%\s*#(?!\si18n-tasks-use)),
}
@ignore_lines_res = conf[:ignore_lines].inject({}) { |h, (ext, re)| h.update(ext => Regexp.new(re)) }
@key_filter = nil
Expand Down

0 comments on commit f6ad75b

Please sign in to comment.