Skip to content
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.

Commit

Permalink
tweak context_ok? to be more permissive
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Sep 18, 2010
1 parent e97f829 commit 4140edd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions processor.rb
Expand Up @@ -30,8 +30,10 @@ def mark(*explanations)
end

def context_ok?
( context[1] == :block or
context[1, 2] == [:scope, :sclass] ) and
( context[1].nil? or
context[1] == :block or
context[1, 2] == [:scope, :sclass] or
context[1, 2] == [:scope, :module] ) and
not in_args?
end

Expand Down

0 comments on commit 4140edd

Please sign in to comment.