diff --git a/src/ShellCheck/Parser.hs b/src/ShellCheck/Parser.hs index 8a7f794..47ea8c9 100644 --- a/src/ShellCheck/Parser.hs +++ b/src/ShellCheck/Parser.hs @@ -1200,7 +1200,7 @@ readBackTicked quoted = called "backtick expansion" $ do suggestForgotClosingQuote startPos endPos "backtick expansion" -- 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 where unEscape [] = []