SC1068 (var = x) now alternatively suggests quoting (fixes #1412)
This commit is contained in:
parent
3d61b73e91
commit
88aef838f1
|
@ -2715,9 +2715,10 @@ readAssignmentWordExt lenient = try $ do
|
||||||
when (hasLeftSpace || hasRightSpace) $
|
when (hasLeftSpace || hasRightSpace) $
|
||||||
parseNoteAt pos ErrorC 1068 $
|
parseNoteAt pos ErrorC 1068 $
|
||||||
"Don't put spaces around the "
|
"Don't put spaces around the "
|
||||||
++ if op == Append
|
++ (if op == Append
|
||||||
then "+= when appending."
|
then "+= when appending"
|
||||||
else "= in assignments."
|
else "= in assignments")
|
||||||
|
++ " (or quote to make it literal)."
|
||||||
value <- readArray <|> readNormalWord
|
value <- readArray <|> readNormalWord
|
||||||
spacing
|
spacing
|
||||||
return $ T_Assignment id op variable indices value
|
return $ T_Assignment id op variable indices value
|
||||||
|
|
Loading…
Reference in New Issue