SC1068 (var = x) now alternatively suggests quoting (fixes #1412)

This commit is contained in:
Vidar Holen 2018-12-16 15:45:52 -08:00
parent 3d61b73e91
commit 88aef838f1
1 changed files with 4 additions and 3 deletions

View File

@ -2715,9 +2715,10 @@ readAssignmentWordExt lenient = try $ do
when (hasLeftSpace || hasRightSpace) $
parseNoteAt pos ErrorC 1068 $
"Don't put spaces around the "
++ if op == Append
then "+= when appending."
else "= in assignments."
++ (if op == Append
then "+= when appending"
else "= in assignments")
++ " (or quote to make it literal)."
value <- readArray <|> readNormalWord
spacing
return $ T_Assignment id op variable indices value