From 293c3b27b81053d7c20cedffc95523ca35bb0033 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 3 Mar 2019 13:37:32 -0800 Subject: [PATCH] Continue on parse errors in backticks (fixes #1475) --- src/ShellCheck/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 [] = []