Fix missing backslash in SC1003 about '\''
This commit is contained in:
parent
36573b5b26
commit
66c7cf19e2
|
@ -1339,7 +1339,7 @@ readSingleEscaped = do
|
|||
x <- lookAhead anyChar
|
||||
|
||||
case x of
|
||||
'\'' -> parseProblemAt pos InfoC 1003 "Want to escape a single quote? echo 'This is how it'\''s done'.";
|
||||
'\'' -> parseProblemAt pos InfoC 1003 "Want to escape a single quote? echo 'This is how it'\\''s done'.";
|
||||
'\n' -> parseProblemAt pos InfoC 1004 "This backslash+linefeed is literal. Break outside single quotes if you just want to break the line."
|
||||
_ -> return ()
|
||||
|
||||
|
|
Loading…
Reference in New Issue