Improve detection of for loops with single values

This commit is contained in:
Vidar Holen
2020-03-15 11:29:32 -07:00
parent d28c8f883f
commit a57f6d2886
3 changed files with 23 additions and 6 deletions

View File

@@ -47,6 +47,7 @@ willSplit x =
T_BraceExpansion {} -> True
T_Glob {} -> True
T_Extglob {} -> True
T_DoubleQuoted _ l -> any willBecomeMultipleArgs l
T_NormalWord _ l -> any willSplit l
_ -> False