mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 17:14:13 +08:00
Fix missing backslash in SC1003 about '\''
This commit is contained in:
@@ -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 ()
|
||||
|
||||
|
Reference in New Issue
Block a user