Case statements are now rightfully unquotable contexts

This commit is contained in:
Vidar Holen 2012-11-27 00:11:23 -08:00
parent 2052adffef
commit ba5bb488d1
1 changed files with 1 additions and 0 deletions

View File

@ -404,6 +404,7 @@ inUnquotableContext tree t =
T_Assignment _ _ _ -> True T_Assignment _ _ _ -> True
T_Redirecting _ _ _ -> False T_Redirecting _ _ _ -> False
T_DoubleQuoted _ _ -> True T_DoubleQuoted _ _ -> True
T_CaseExpression _ _ _ -> True
T_ForIn _ _ _ _ -> True -- Pragmatically assume it's desirable here T_ForIn _ _ _ _ -> True -- Pragmatically assume it's desirable here
x -> case Map.lookup (getId x) tree of x -> case Map.lookup (getId x) tree of
Nothing -> False Nothing -> False