Add nil case that went missing in 4fd0615

This commit is contained in:
Joseph C. Sible 2023-11-03 01:33:49 -04:00
parent 2a95bc6be3
commit 1aeab287e6
1 changed files with 1 additions and 0 deletions

View File

@ -4380,6 +4380,7 @@ checkEqualsInCommand params originalToken =
isLeadingNumberVar s =
case takeWhile (/= '=') s of
lead@(x:_) -> isDigit x && all isVariableChar lead && not (all isDigit lead)
[] -> False
msg cmd leading (T_Literal litId s) = do
-- There are many different cases, and the order of the branches matter.