mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 06:12:59 +08:00
Continue on parse errors in backticks (fixes #1475)
This commit is contained in:
@@ -1200,7 +1200,7 @@ readBackTicked quoted = called "backtick expansion" $ do
|
|||||||
suggestForgotClosingQuote startPos endPos "backtick expansion"
|
suggestForgotClosingQuote startPos endPos "backtick expansion"
|
||||||
|
|
||||||
-- Result positions may be off due to escapes
|
-- Result positions may be off due to escapes
|
||||||
result <- subParse subStart subParser (unEscape subString)
|
result <- subParse subStart (tryWithErrors subParser <|> return []) (unEscape subString)
|
||||||
return $ T_Backticked id result
|
return $ T_Backticked id result
|
||||||
where
|
where
|
||||||
unEscape [] = []
|
unEscape [] = []
|
||||||
|
Reference in New Issue
Block a user